Browse Source

Merge branch 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus

* 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus: (49 commits)
  MIPS: RB532: provide GPIO_BUILTIN_NR and irq_to_gpio/gpio_to_irq
  MIPS: Move ptrace prototypes to ptrace.h
  MIPS: Ptrace support for HARDWARE_WATCHPOINTS
  MIPS: Scheduler support for HARDWARE_WATCHPOINTS.
  MIPS: Watch exception handling for HARDWARE_WATCHPOINTS.
  MIPS: Probe watch registers and report configuration.
  MIPS: Add HARDWARE_WATCHPOINTS definitions and support code.
  MIPS: Add HARDWARE_WATCHPOINTS configure option.
  MIPS: Replace use of <asm-generic/uaccess.h> with native implementations.
  MIPS: TXx9: Add TX4939 ATA support (v2)
  MIPS: Rewrite spinlocks to ticket locks.
  MIPS: IP checksums: Optimize adjust of sum on buffers of odd alignment.
  MIPS: IP checksums: Remove unncessary .set pseudos
  MIPS: IP checksums: Remove unncessary folding of sum to 16 bit.
  MIPS: Move headfiles to new location below arch/mips/include
  MIPS: Alchemy: rename directory
  MIPS: Optimize get_user and put_user for 64-bit
  MIPS: TXx9: Implement prom_free_prom_memory
  MIPS: TXx9: Add RBTX4939 board support
  MIPS: TXx9: Add TX4939 SoC support
  ...
Linus Torvalds 16 years ago
parent
commit
835a1c0924
100 changed files with 83 additions and 75 deletions
  1. 4 0
      Documentation/kernel-parameters.txt
  2. 9 7
      arch/mips/Kconfig
  3. 59 63
      arch/mips/Makefile
  4. 0 0
      arch/mips/alchemy/Kconfig
  5. 0 0
      arch/mips/alchemy/common/Makefile
  6. 0 0
      arch/mips/alchemy/common/au1xxx_irqmap.c
  7. 0 0
      arch/mips/alchemy/common/clocks.c
  8. 0 0
      arch/mips/alchemy/common/cputable.c
  9. 0 0
      arch/mips/alchemy/common/dbdma.c
  10. 0 0
      arch/mips/alchemy/common/dma.c
  11. 0 0
      arch/mips/alchemy/common/gpio.c
  12. 0 0
      arch/mips/alchemy/common/irq.c
  13. 0 0
      arch/mips/alchemy/common/pci.c
  14. 0 0
      arch/mips/alchemy/common/platform.c
  15. 0 0
      arch/mips/alchemy/common/power.c
  16. 0 0
      arch/mips/alchemy/common/prom.c
  17. 0 0
      arch/mips/alchemy/common/puts.c
  18. 0 0
      arch/mips/alchemy/common/reset.c
  19. 0 0
      arch/mips/alchemy/common/setup.c
  20. 5 5
      arch/mips/alchemy/common/sleeper.S
  21. 0 0
      arch/mips/alchemy/common/time.c
  22. 0 0
      arch/mips/alchemy/db1x00/Makefile
  23. 0 0
      arch/mips/alchemy/db1x00/board_setup.c
  24. 0 0
      arch/mips/alchemy/db1x00/init.c
  25. 0 0
      arch/mips/alchemy/db1x00/irqmap.c
  26. 0 0
      arch/mips/alchemy/mtx-1/Makefile
  27. 0 0
      arch/mips/alchemy/mtx-1/board_setup.c
  28. 0 0
      arch/mips/alchemy/mtx-1/init.c
  29. 0 0
      arch/mips/alchemy/mtx-1/irqmap.c
  30. 0 0
      arch/mips/alchemy/mtx-1/platform.c
  31. 0 0
      arch/mips/alchemy/pb1000/Makefile
  32. 0 0
      arch/mips/alchemy/pb1000/board_setup.c
  33. 0 0
      arch/mips/alchemy/pb1000/init.c
  34. 0 0
      arch/mips/alchemy/pb1000/irqmap.c
  35. 0 0
      arch/mips/alchemy/pb1100/Makefile
  36. 0 0
      arch/mips/alchemy/pb1100/board_setup.c
  37. 0 0
      arch/mips/alchemy/pb1100/init.c
  38. 0 0
      arch/mips/alchemy/pb1100/irqmap.c
  39. 0 0
      arch/mips/alchemy/pb1200/Makefile
  40. 0 0
      arch/mips/alchemy/pb1200/board_setup.c
  41. 0 0
      arch/mips/alchemy/pb1200/init.c
  42. 0 0
      arch/mips/alchemy/pb1200/irqmap.c
  43. 0 0
      arch/mips/alchemy/pb1200/platform.c
  44. 0 0
      arch/mips/alchemy/pb1500/Makefile
  45. 0 0
      arch/mips/alchemy/pb1500/board_setup.c
  46. 0 0
      arch/mips/alchemy/pb1500/init.c
  47. 0 0
      arch/mips/alchemy/pb1500/irqmap.c
  48. 0 0
      arch/mips/alchemy/pb1550/Makefile
  49. 0 0
      arch/mips/alchemy/pb1550/board_setup.c
  50. 0 0
      arch/mips/alchemy/pb1550/init.c
  51. 0 0
      arch/mips/alchemy/pb1550/irqmap.c
  52. 0 0
      arch/mips/alchemy/xxs1500/Makefile
  53. 0 0
      arch/mips/alchemy/xxs1500/board_setup.c
  54. 0 0
      arch/mips/alchemy/xxs1500/init.c
  55. 0 0
      arch/mips/alchemy/xxs1500/irqmap.c
  56. 0 0
      arch/mips/include/asm/Kbuild
  57. 0 0
      arch/mips/include/asm/a.out.h
  58. 0 0
      arch/mips/include/asm/abi.h
  59. 0 0
      arch/mips/include/asm/addrspace.h
  60. 0 0
      arch/mips/include/asm/asm.h
  61. 0 0
      arch/mips/include/asm/asmmacro-32.h
  62. 0 0
      arch/mips/include/asm/asmmacro-64.h
  63. 0 0
      arch/mips/include/asm/asmmacro.h
  64. 0 0
      arch/mips/include/asm/atomic.h
  65. 0 0
      arch/mips/include/asm/auxvec.h
  66. 0 0
      arch/mips/include/asm/barrier.h
  67. 0 0
      arch/mips/include/asm/bcache.h
  68. 0 0
      arch/mips/include/asm/bitops.h
  69. 0 0
      arch/mips/include/asm/bootinfo.h
  70. 0 0
      arch/mips/include/asm/branch.h
  71. 0 0
      arch/mips/include/asm/break.h
  72. 0 0
      arch/mips/include/asm/bug.h
  73. 0 0
      arch/mips/include/asm/bugs.h
  74. 0 0
      arch/mips/include/asm/byteorder.h
  75. 0 0
      arch/mips/include/asm/cache.h
  76. 0 0
      arch/mips/include/asm/cachectl.h
  77. 0 0
      arch/mips/include/asm/cacheflush.h
  78. 0 0
      arch/mips/include/asm/cacheops.h
  79. 0 0
      arch/mips/include/asm/checksum.h
  80. 0 0
      arch/mips/include/asm/cmp.h
  81. 0 0
      arch/mips/include/asm/cmpxchg.h
  82. 0 0
      arch/mips/include/asm/compat-signal.h
  83. 0 0
      arch/mips/include/asm/compat.h
  84. 0 0
      arch/mips/include/asm/compiler.h
  85. 0 0
      arch/mips/include/asm/cpu-features.h
  86. 6 0
      arch/mips/include/asm/cpu-info.h
  87. 0 0
      arch/mips/include/asm/cpu.h
  88. 0 0
      arch/mips/include/asm/cputime.h
  89. 0 0
      arch/mips/include/asm/current.h
  90. 0 0
      arch/mips/include/asm/debug.h
  91. 0 0
      arch/mips/include/asm/dec/ecc.h
  92. 0 0
      arch/mips/include/asm/dec/interrupts.h
  93. 0 0
      arch/mips/include/asm/dec/ioasic.h
  94. 0 0
      arch/mips/include/asm/dec/ioasic_addrs.h
  95. 0 0
      arch/mips/include/asm/dec/ioasic_ints.h
  96. 0 0
      arch/mips/include/asm/dec/kn01.h
  97. 0 0
      arch/mips/include/asm/dec/kn02.h
  98. 0 0
      arch/mips/include/asm/dec/kn02ba.h
  99. 0 0
      arch/mips/include/asm/dec/kn02ca.h
  100. 0 0
      arch/mips/include/asm/dec/kn02xa.h

+ 4 - 0
Documentation/kernel-parameters.txt

@@ -1014,6 +1014,10 @@ and is between 256 and 4096 characters. It is defined in the file
 			(only serial suported for now)
 			Format: <serial_device>[,baud]
 
+	kmac=		[MIPS] korina ethernet MAC address.
+			Configure the RouterBoard 532 series on-chip
+			Ethernet adapter MAC address.
+
 	l2cr=		[PPC]
 
 	l3cr=		[PPC]

+ 9 - 7
arch/mips/Kconfig

@@ -568,7 +568,7 @@ config MIKROTIK_RB532
 	select SYS_SUPPORTS_LITTLE_ENDIAN
 	select SWAP_IO_SPACE
 	select BOOT_RAW
-	select GENERIC_GPIO
+	select ARCH_REQUIRE_GPIOLIB
 	help
 	  Support the Mikrotik(tm) RouterBoard 532 series,
 	  based on the IDT RC32434 SoC.
@@ -598,7 +598,7 @@ config WR_PPMC
 
 endchoice
 
-source "arch/mips/au1000/Kconfig"
+source "arch/mips/alchemy/Kconfig"
 source "arch/mips/basler/excite/Kconfig"
 source "arch/mips/jazz/Kconfig"
 source "arch/mips/lasat/Kconfig"
@@ -610,11 +610,6 @@ source "arch/mips/vr41xx/Kconfig"
 
 endmenu
 
-config GENERIC_LOCKBREAK
-	bool
-	default y
-	depends on SMP && PREEMPT
-
 config RWSEM_GENERIC_SPINLOCK
 	bool
 	default y
@@ -1273,6 +1268,13 @@ config CPU_SUPPORTS_32BIT_KERNEL
 config CPU_SUPPORTS_64BIT_KERNEL
 	bool
 
+#
+# Set to y for ptrace access to watch registers.
+#
+config HARDWARE_WATCHPOINTS
+       bool
+       default y if CPU_MIPS32 || CPU_MIPS64
+
 menu "Kernel type"
 
 choice

+ 59 - 63
arch/mips/Makefile

@@ -170,123 +170,123 @@ libs-$(CONFIG_SIBYTE_CFE)	+= arch/mips/sibyte/cfe/
 # Acer PICA 61, Mips Magnum 4000 and Olivetti M700.
 #
 core-$(CONFIG_MACH_JAZZ)	+= arch/mips/jazz/
-cflags-$(CONFIG_MACH_JAZZ)	+= -Iinclude/asm-mips/mach-jazz
+cflags-$(CONFIG_MACH_JAZZ)	+= -I$(srctree)/arch/mips/include/asm/mach-jazz
 load-$(CONFIG_MACH_JAZZ)	+= 0xffffffff80080000
 
 #
 # Common Alchemy Au1x00 stuff
 #
-core-$(CONFIG_SOC_AU1X00)	+= arch/mips/au1000/common/
-cflags-$(CONFIG_SOC_AU1X00)	+= -Iinclude/asm-mips/mach-au1x00
+core-$(CONFIG_SOC_AU1X00)	+= arch/mips/alchemy/common/
+cflags-$(CONFIG_SOC_AU1X00)	+= -I$(srctree)/arch/mips/include/asm/mach-au1x00
 
 #
 # AMD Alchemy Pb1000 eval board
 #
-libs-$(CONFIG_MIPS_PB1000)	+= arch/mips/au1000/pb1000/
-cflags-$(CONFIG_MIPS_PB1000)	+= -Iinclude/asm-mips/mach-pb1x00
+libs-$(CONFIG_MIPS_PB1000)	+= arch/mips/alchemy/pb1000/
+cflags-$(CONFIG_MIPS_PB1000)	+= -I$(srctree)/arch/mips/include/asm/mach-pb1x00
 load-$(CONFIG_MIPS_PB1000)	+= 0xffffffff80100000
 
 #
 # AMD Alchemy Pb1100 eval board
 #
-libs-$(CONFIG_MIPS_PB1100)	+= arch/mips/au1000/pb1100/
-cflags-$(CONFIG_MIPS_PB1100)	+= -Iinclude/asm-mips/mach-pb1x00
+libs-$(CONFIG_MIPS_PB1100)	+= arch/mips/alchemy/pb1100/
+cflags-$(CONFIG_MIPS_PB1100)	+= -I$(srctree)/arch/mips/include/asm/mach-pb1x00
 load-$(CONFIG_MIPS_PB1100)	+= 0xffffffff80100000
 
 #
 # AMD Alchemy Pb1500 eval board
 #
-libs-$(CONFIG_MIPS_PB1500)	+= arch/mips/au1000/pb1500/
-cflags-$(CONFIG_MIPS_PB1500)	+= -Iinclude/asm-mips/mach-pb1x00
+libs-$(CONFIG_MIPS_PB1500)	+= arch/mips/alchemy/pb1500/
+cflags-$(CONFIG_MIPS_PB1500)	+= -I$(srctree)/arch/mips/include/asm/mach-pb1x00
 load-$(CONFIG_MIPS_PB1500)	+= 0xffffffff80100000
 
 #
 # AMD Alchemy Pb1550 eval board
 #
-libs-$(CONFIG_MIPS_PB1550)	+= arch/mips/au1000/pb1550/
-cflags-$(CONFIG_MIPS_PB1550)	+= -Iinclude/asm-mips/mach-pb1x00
+libs-$(CONFIG_MIPS_PB1550)	+= arch/mips/alchemy/pb1550/
+cflags-$(CONFIG_MIPS_PB1550)	+= -I$(srctree)/arch/mips/include/asm/mach-pb1x00
 load-$(CONFIG_MIPS_PB1550)	+= 0xffffffff80100000
 
 #
 # AMD Alchemy Pb1200 eval board
 #
-libs-$(CONFIG_MIPS_PB1200)	+= arch/mips/au1000/pb1200/
-cflags-$(CONFIG_MIPS_PB1200)	+= -Iinclude/asm-mips/mach-pb1x00
+libs-$(CONFIG_MIPS_PB1200)	+= arch/mips/alchemy/pb1200/
+cflags-$(CONFIG_MIPS_PB1200)	+= -I$(srctree)/arch/mips/include/asm/mach-pb1x00
 load-$(CONFIG_MIPS_PB1200)	+= 0xffffffff80100000
 
 #
 # AMD Alchemy Db1000 eval board
 #
-libs-$(CONFIG_MIPS_DB1000)	+= arch/mips/au1000/db1x00/
-cflags-$(CONFIG_MIPS_DB1000)	+= -Iinclude/asm-mips/mach-db1x00
+libs-$(CONFIG_MIPS_DB1000)	+= arch/mips/alchemy/db1x00/
+cflags-$(CONFIG_MIPS_DB1000)	+= -I$(srctree)/arch/mips/include/asm/mach-db1x00
 load-$(CONFIG_MIPS_DB1000)	+= 0xffffffff80100000
 
 #
 # AMD Alchemy Db1100 eval board
 #
-libs-$(CONFIG_MIPS_DB1100)	+= arch/mips/au1000/db1x00/
-cflags-$(CONFIG_MIPS_DB1100)	+= -Iinclude/asm-mips/mach-db1x00
+libs-$(CONFIG_MIPS_DB1100)	+= arch/mips/alchemy/db1x00/
+cflags-$(CONFIG_MIPS_DB1100)	+= -I$(srctree)/arch/mips/include/asm/mach-db1x00
 load-$(CONFIG_MIPS_DB1100)	+= 0xffffffff80100000
 
 #
 # AMD Alchemy Db1500 eval board
 #
-libs-$(CONFIG_MIPS_DB1500)	+= arch/mips/au1000/db1x00/
-cflags-$(CONFIG_MIPS_DB1500)	+= -Iinclude/asm-mips/mach-db1x00
+libs-$(CONFIG_MIPS_DB1500)	+= arch/mips/alchemy/db1x00/
+cflags-$(CONFIG_MIPS_DB1500)	+= -I$(srctree)/arch/mips/include/asm/mach-db1x00
 load-$(CONFIG_MIPS_DB1500)	+= 0xffffffff80100000
 
 #
 # AMD Alchemy Db1550 eval board
 #
-libs-$(CONFIG_MIPS_DB1550)	+= arch/mips/au1000/db1x00/
-cflags-$(CONFIG_MIPS_DB1550)	+= -Iinclude/asm-mips/mach-db1x00
+libs-$(CONFIG_MIPS_DB1550)	+= arch/mips/alchemy/db1x00/
+cflags-$(CONFIG_MIPS_DB1550)	+= -I$(srctree)/arch/mips/include/asm/mach-db1x00
 load-$(CONFIG_MIPS_DB1550)	+= 0xffffffff80100000
 
 #
 # AMD Alchemy Db1200 eval board
 #
-libs-$(CONFIG_MIPS_DB1200)	+= arch/mips/au1000/pb1200/
-cflags-$(CONFIG_MIPS_DB1200)	+= -Iinclude/asm-mips/mach-db1x00
+libs-$(CONFIG_MIPS_DB1200)	+= arch/mips/alchemy/pb1200/
+cflags-$(CONFIG_MIPS_DB1200)	+= -I$(srctree)/arch/mips/include/asm/mach-db1x00
 load-$(CONFIG_MIPS_DB1200)	+= 0xffffffff80100000
 
 #
 # AMD Alchemy Bosporus eval board
 #
-libs-$(CONFIG_MIPS_BOSPORUS)	+= arch/mips/au1000/db1x00/
-cflags-$(CONFIG_MIPS_BOSPORUS)	+= -Iinclude/asm-mips/mach-db1x00
+libs-$(CONFIG_MIPS_BOSPORUS)	+= arch/mips/alchemy/db1x00/
+cflags-$(CONFIG_MIPS_BOSPORUS)	+= -I$(srctree)/arch/mips/include/asm/mach-db1x00
 load-$(CONFIG_MIPS_BOSPORUS)	+= 0xffffffff80100000
 
 #
 # AMD Alchemy Mirage eval board
 #
-libs-$(CONFIG_MIPS_MIRAGE)	+= arch/mips/au1000/db1x00/
-cflags-$(CONFIG_MIPS_MIRAGE)	+= -Iinclude/asm-mips/mach-db1x00
+libs-$(CONFIG_MIPS_MIRAGE)	+= arch/mips/alchemy/db1x00/
+cflags-$(CONFIG_MIPS_MIRAGE)	+= -I$(srctree)/arch/mips/include/asm/mach-db1x00
 load-$(CONFIG_MIPS_MIRAGE)	+= 0xffffffff80100000
 
 #
 # 4G-Systems eval board
 #
-libs-$(CONFIG_MIPS_MTX1)	+= arch/mips/au1000/mtx-1/
+libs-$(CONFIG_MIPS_MTX1)	+= arch/mips/alchemy/mtx-1/
 load-$(CONFIG_MIPS_MTX1)	+= 0xffffffff80100000
 
 #
 # MyCable eval board
 #
-libs-$(CONFIG_MIPS_XXS1500)	+= arch/mips/au1000/xxs1500/
+libs-$(CONFIG_MIPS_XXS1500)	+= arch/mips/alchemy/xxs1500/
 load-$(CONFIG_MIPS_XXS1500)	+= 0xffffffff80100000
 
 #
 # Cobalt Server
 #
 core-$(CONFIG_MIPS_COBALT)	+= arch/mips/cobalt/
-cflags-$(CONFIG_MIPS_COBALT)	+= -Iinclude/asm-mips/mach-cobalt
+cflags-$(CONFIG_MIPS_COBALT)	+= -I$(srctree)/arch/mips/include/asm/mach-cobalt
 load-$(CONFIG_MIPS_COBALT)	+= 0xffffffff80080000
 
 #
 # DECstation family
 #
 core-$(CONFIG_MACH_DECSTATION)	+= arch/mips/dec/
-cflags-$(CONFIG_MACH_DECSTATION)+= -Iinclude/asm-mips/mach-dec
+cflags-$(CONFIG_MACH_DECSTATION)+= -I$(srctree)/arch/mips/include/asm/mach-dec
 libs-$(CONFIG_MACH_DECSTATION)	+= arch/mips/dec/prom/
 load-$(CONFIG_MACH_DECSTATION)	+= 0xffffffff80040000
 
@@ -294,7 +294,7 @@ load-$(CONFIG_MACH_DECSTATION)	+= 0xffffffff80040000
 # Wind River PPMC Board (4KC + GT64120)
 #
 core-$(CONFIG_WR_PPMC)		+= arch/mips/gt64120/wrppmc/
-cflags-$(CONFIG_WR_PPMC)		+= -Iinclude/asm-mips/mach-wrppmc
+cflags-$(CONFIG_WR_PPMC)		+= -I$(srctree)/arch/mips/include/asm/mach-wrppmc
 load-$(CONFIG_WR_PPMC)		+= 0xffffffff80100000
 
 #
@@ -302,13 +302,13 @@ load-$(CONFIG_WR_PPMC)		+= 0xffffffff80100000
 #
 core-$(CONFIG_LEMOTE_FULONG) +=arch/mips/lemote/lm2e/
 load-$(CONFIG_LEMOTE_FULONG) +=0xffffffff80100000
-cflags-$(CONFIG_LEMOTE_FULONG) += -Iinclude/asm-mips/mach-lemote
+cflags-$(CONFIG_LEMOTE_FULONG) += -I$(srctree)/arch/mips/include/asm/mach-lemote
 
 #
 # MIPS Malta board
 #
 core-$(CONFIG_MIPS_MALTA)	+= arch/mips/mti-malta/
-cflags-$(CONFIG_MIPS_MALTA)	+= -Iinclude/asm-mips/mach-malta
+cflags-$(CONFIG_MIPS_MALTA)	+= -I$(srctree)/arch/mips/include/asm/mach-malta
 load-$(CONFIG_MIPS_MALTA)	+= 0xffffffff80100000
 all-$(CONFIG_MIPS_MALTA)	:= vmlinux.bin
 
@@ -316,14 +316,14 @@ all-$(CONFIG_MIPS_MALTA)	:= vmlinux.bin
 # MIPS SIM
 #
 core-$(CONFIG_MIPS_SIM)		+= arch/mips/mipssim/
-cflags-$(CONFIG_MIPS_SIM)	+= -Iinclude/asm-mips/mach-mipssim
+cflags-$(CONFIG_MIPS_SIM)	+= -I$(srctree)/arch/mips/include/asm/mach-mipssim
 load-$(CONFIG_MIPS_SIM)		+= 0x80100000
 
 #
 # PMC-Sierra MSP SOCs
 #
 core-$(CONFIG_PMC_MSP)		+= arch/mips/pmc-sierra/msp71xx/
-cflags-$(CONFIG_PMC_MSP)	+= -Iinclude/asm-mips/pmc-sierra/msp71xx \
+cflags-$(CONFIG_PMC_MSP)	+= -I$(srctree)/arch/mips/include/asm/pmc-sierra/msp71xx \
 					-mno-branch-likely
 load-$(CONFIG_PMC_MSP)		+= 0xffffffff80100000
 
@@ -331,28 +331,28 @@ load-$(CONFIG_PMC_MSP)		+= 0xffffffff80100000
 # PMC-Sierra Yosemite
 #
 core-$(CONFIG_PMC_YOSEMITE)	+= arch/mips/pmc-sierra/yosemite/
-cflags-$(CONFIG_PMC_YOSEMITE)	+= -Iinclude/asm-mips/mach-yosemite
+cflags-$(CONFIG_PMC_YOSEMITE)	+= -I$(srctree)/arch/mips/include/asm/mach-yosemite
 load-$(CONFIG_PMC_YOSEMITE)	+= 0xffffffff80100000
 
 #
 # Basler eXcite
 #
 core-$(CONFIG_BASLER_EXCITE)	+= arch/mips/basler/excite/
-cflags-$(CONFIG_BASLER_EXCITE)	+= -Iinclude/asm-mips/mach-excite
+cflags-$(CONFIG_BASLER_EXCITE)	+= -I$(srctree)/arch/mips/include/asm/mach-excite
 load-$(CONFIG_BASLER_EXCITE)	+= 0x80100000
 
 #
 # LASAT platforms
 #
 core-$(CONFIG_LASAT)		+= arch/mips/lasat/
-cflags-$(CONFIG_LASAT)		+= -Iinclude/asm-mips/mach-lasat
+cflags-$(CONFIG_LASAT)		+= -I$(srctree)/arch/mips/include/asm/mach-lasat
 load-$(CONFIG_LASAT)		+= 0xffffffff80000000
 
 #
 # Common VR41xx
 #
 core-$(CONFIG_MACH_VR41XX)	+= arch/mips/vr41xx/common/
-cflags-$(CONFIG_MACH_VR41XX)	+= -Iinclude/asm-mips/mach-vr41xx
+cflags-$(CONFIG_MACH_VR41XX)	+= -I$(srctree)/arch/mips/include/asm/mach-vr41xx
 
 #
 # ZAO Networks Capcella (VR4131)
@@ -385,13 +385,13 @@ load-$(CONFIG_TANBAC_TB022X)	+= 0xffffffff80000000
 # Common NXP PNX8550
 #
 core-$(CONFIG_SOC_PNX8550)	+= arch/mips/nxp/pnx8550/common/
-cflags-$(CONFIG_SOC_PNX8550)	+= -Iinclude/asm-mips/mach-pnx8550
+cflags-$(CONFIG_SOC_PNX8550)	+= -I$(srctree)/arch/mips/include/asm/mach-pnx8550
 
 #
 # NXP PNX8550 JBS board
 #
 libs-$(CONFIG_PNX8550_JBS)	+= arch/mips/nxp/pnx8550/jbs/
-#cflags-$(CONFIG_PNX8550_JBS)	+= -Iinclude/asm-mips/mach-pnx8550
+#cflags-$(CONFIG_PNX8550_JBS)	+= -I$(srctree)/arch/mips/include/asm/mach-pnx8550
 load-$(CONFIG_PNX8550_JBS)	+= 0xffffffff80060000
 
 # NXP PNX8550 STB810 board
@@ -402,7 +402,7 @@ load-$(CONFIG_PNX8550_STB810)	+= 0xffffffff80060000
 # NEC EMMA2RH boards
 #
 core-$(CONFIG_EMMA2RH)          += arch/mips/emma2rh/common/
-cflags-$(CONFIG_EMMA2RH)        += -Iinclude/asm-mips/mach-emma2rh
+cflags-$(CONFIG_EMMA2RH)        += -I$(srctree)/arch/mips/include/asm/mach-emma2rh
 
 # NEC EMMA2RH Mark-eins
 core-$(CONFIG_MARKEINS)         += arch/mips/emma2rh/markeins/
@@ -418,7 +418,7 @@ load-$(CONFIG_MARKEINS)         += 0xffffffff88100000
 # address by 8kb.
 #
 core-$(CONFIG_SGI_IP22)		+= arch/mips/sgi-ip22/
-cflags-$(CONFIG_SGI_IP22)	+= -Iinclude/asm-mips/mach-ip22
+cflags-$(CONFIG_SGI_IP22)	+= -I$(srctree)/arch/mips/include/asm/mach-ip22
 ifdef CONFIG_32BIT
 load-$(CONFIG_SGI_IP22)		+= 0xffffffff88002000
 endif
@@ -435,7 +435,7 @@ endif
 #
 ifdef CONFIG_SGI_IP27
 core-$(CONFIG_SGI_IP27)		+= arch/mips/sgi-ip27/
-cflags-$(CONFIG_SGI_IP27)	+= -Iinclude/asm-mips/mach-ip27
+cflags-$(CONFIG_SGI_IP27)	+= -I$(srctree)/arch/mips/include/asm/mach-ip27
 ifdef CONFIG_MAPPED_KERNEL
 load-$(CONFIG_SGI_IP27)		+= 0xc00000004001c000
 OBJCOPYFLAGS			:= --change-addresses=0x3fffffff80000000
@@ -460,7 +460,7 @@ ifdef CONFIG_SGI_IP28
   endif
 endif
 core-$(CONFIG_SGI_IP28)		+= arch/mips/sgi-ip22/
-cflags-$(CONFIG_SGI_IP28)	+= -mr10k-cache-barrier=1 -Iinclude/asm-mips/mach-ip28
+cflags-$(CONFIG_SGI_IP28)	+= -mr10k-cache-barrier=1 -I$(srctree)/arch/mips/include/asm/mach-ip28
 load-$(CONFIG_SGI_IP28)		+= 0xa800000020004000
 
 #
@@ -472,7 +472,7 @@ load-$(CONFIG_SGI_IP28)		+= 0xa800000020004000
 # will break.
 #
 core-$(CONFIG_SGI_IP32)		+= arch/mips/sgi-ip32/
-cflags-$(CONFIG_SGI_IP32)	+= -Iinclude/asm-mips/mach-ip32
+cflags-$(CONFIG_SGI_IP32)	+= -I$(srctree)/arch/mips/include/asm/mach-ip32
 load-$(CONFIG_SGI_IP32)		+= 0xffffffff80004000
 
 #
@@ -484,22 +484,22 @@ load-$(CONFIG_SGI_IP32)		+= 0xffffffff80004000
 #
 core-$(CONFIG_SIBYTE_BCM112X)	+= arch/mips/sibyte/sb1250/
 core-$(CONFIG_SIBYTE_BCM112X)	+= arch/mips/sibyte/common/
-cflags-$(CONFIG_SIBYTE_BCM112X)	+= -Iinclude/asm-mips/mach-sibyte \
+cflags-$(CONFIG_SIBYTE_BCM112X)	+= -I$(srctree)/arch/mips/include/asm/mach-sibyte \
 			-DSIBYTE_HDR_FEATURES=SIBYTE_HDR_FMASK_1250_112x_ALL
 
 core-$(CONFIG_SIBYTE_SB1250)	+= arch/mips/sibyte/sb1250/
 core-$(CONFIG_SIBYTE_SB1250)	+= arch/mips/sibyte/common/
-cflags-$(CONFIG_SIBYTE_SB1250)	+= -Iinclude/asm-mips/mach-sibyte \
+cflags-$(CONFIG_SIBYTE_SB1250)	+= -I$(srctree)/arch/mips/include/asm/mach-sibyte \
 			-DSIBYTE_HDR_FEATURES=SIBYTE_HDR_FMASK_1250_112x_ALL
 
 core-$(CONFIG_SIBYTE_BCM1x55)	+= arch/mips/sibyte/bcm1480/
 core-$(CONFIG_SIBYTE_BCM1x55)	+= arch/mips/sibyte/common/
-cflags-$(CONFIG_SIBYTE_BCM1x55)	+= -Iinclude/asm-mips/mach-sibyte \
+cflags-$(CONFIG_SIBYTE_BCM1x55)	+= -I$(srctree)/arch/mips/include/asm/mach-sibyte \
 			-DSIBYTE_HDR_FEATURES=SIBYTE_HDR_FMASK_1480_ALL
 
 core-$(CONFIG_SIBYTE_BCM1x80)	+= arch/mips/sibyte/bcm1480/
 core-$(CONFIG_SIBYTE_BCM1x80)	+= arch/mips/sibyte/common/
-cflags-$(CONFIG_SIBYTE_BCM1x80)	+= -Iinclude/asm-mips/mach-sibyte \
+cflags-$(CONFIG_SIBYTE_BCM1x80)	+= -I$(srctree)/arch/mips/include/asm/mach-sibyte \
 			-DSIBYTE_HDR_FEATURES=SIBYTE_HDR_FMASK_1480_ALL
 
 #
@@ -529,14 +529,14 @@ load-$(CONFIG_SIBYTE_BIGSUR)	:= 0xffffffff80100000
 # Broadcom BCM47XX boards
 #
 core-$(CONFIG_BCM47XX)		+= arch/mips/bcm47xx/
-cflags-$(CONFIG_BCM47XX)	+= -Iinclude/asm-mips/mach-bcm47xx
+cflags-$(CONFIG_BCM47XX)	+= -I$(srctree)/arch/mips/include/asm/mach-bcm47xx
 load-$(CONFIG_BCM47XX)		:= 0xffffffff80001000
 
 #
 # SNI RM
 #
 core-$(CONFIG_SNI_RM)		+= arch/mips/sni/
-cflags-$(CONFIG_SNI_RM)		+= -Iinclude/asm-mips/mach-rm
+cflags-$(CONFIG_SNI_RM)		+= -I$(srctree)/arch/mips/include/asm/mach-rm
 ifdef CONFIG_CPU_LITTLE_ENDIAN
 load-$(CONFIG_SNI_RM)		+= 0xffffffff80600000
 else
@@ -548,10 +548,10 @@ all-$(CONFIG_SNI_RM)		:= vmlinux.ecoff
 # Common TXx9
 #
 core-$(CONFIG_MACH_TX39XX)	+= arch/mips/txx9/generic/
-cflags-$(CONFIG_MACH_TX39XX) += -Iinclude/asm-mips/mach-tx39xx
+cflags-$(CONFIG_MACH_TX39XX) += -I$(srctree)/arch/mips/include/asm/mach-tx39xx
 load-$(CONFIG_MACH_TX39XX)	+= 0xffffffff80050000
 core-$(CONFIG_MACH_TX49XX)	+= arch/mips/txx9/generic/
-cflags-$(CONFIG_MACH_TX49XX) += -Iinclude/asm-mips/mach-tx49xx
+cflags-$(CONFIG_MACH_TX49XX) += -I$(srctree)/arch/mips/include/asm/mach-tx49xx
 load-$(CONFIG_MACH_TX49XX)	+= 0xffffffff80100000
 
 #
@@ -563,21 +563,17 @@ core-$(CONFIG_TOSHIBA_JMR3927)	+= arch/mips/txx9/jmr3927/
 # Routerboard 532 board
 #
 core-$(CONFIG_MIKROTIK_RB532)	+= arch/mips/rb532/
-cflags-$(CONFIG_MIKROTIK_RB532) += -Iinclude/asm-mips/mach-rc32434
+cflags-$(CONFIG_MIKROTIK_RB532) += -I$(srctree)/arch/mips/include/asm/mach-rc32434
 load-$(CONFIG_MIKROTIK_RB532)	+= 0xffffffff80101000
 
 #
-# Toshiba RBTX4927 board or
-# Toshiba RBTX4937 board
+# Toshiba RBTX49XX boards
 #
 core-$(CONFIG_TOSHIBA_RBTX4927)	+= arch/mips/txx9/rbtx4927/
-
-#
-# Toshiba RBTX4938 board
-#
 core-$(CONFIG_TOSHIBA_RBTX4938) += arch/mips/txx9/rbtx4938/
+core-$(CONFIG_TOSHIBA_RBTX4939) += arch/mips/txx9/rbtx4939/
 
-cflags-y			+= -Iinclude/asm-mips/mach-generic
+cflags-y			+= -I$(srctree)/arch/mips/include/asm/mach-generic
 drivers-$(CONFIG_PCI)		+= arch/mips/pci/
 
 ifdef CONFIG_32BIT

+ 0 - 0
arch/mips/au1000/Kconfig → arch/mips/alchemy/Kconfig


+ 0 - 0
arch/mips/au1000/common/Makefile → arch/mips/alchemy/common/Makefile


+ 0 - 0
arch/mips/au1000/common/au1xxx_irqmap.c → arch/mips/alchemy/common/au1xxx_irqmap.c


+ 0 - 0
arch/mips/au1000/common/clocks.c → arch/mips/alchemy/common/clocks.c


+ 0 - 0
arch/mips/au1000/common/cputable.c → arch/mips/alchemy/common/cputable.c


+ 0 - 0
arch/mips/au1000/common/dbdma.c → arch/mips/alchemy/common/dbdma.c


+ 0 - 0
arch/mips/au1000/common/dma.c → arch/mips/alchemy/common/dma.c


+ 0 - 0
arch/mips/au1000/common/gpio.c → arch/mips/alchemy/common/gpio.c


+ 0 - 0
arch/mips/au1000/common/irq.c → arch/mips/alchemy/common/irq.c


+ 0 - 0
arch/mips/au1000/common/pci.c → arch/mips/alchemy/common/pci.c


+ 0 - 0
arch/mips/au1000/common/platform.c → arch/mips/alchemy/common/platform.c


+ 0 - 0
arch/mips/au1000/common/power.c → arch/mips/alchemy/common/power.c


+ 0 - 0
arch/mips/au1000/common/prom.c → arch/mips/alchemy/common/prom.c


+ 0 - 0
arch/mips/au1000/common/puts.c → arch/mips/alchemy/common/puts.c


+ 0 - 0
arch/mips/au1000/common/reset.c → arch/mips/alchemy/common/reset.c


+ 0 - 0
arch/mips/au1000/common/setup.c → arch/mips/alchemy/common/setup.c


+ 5 - 5
arch/mips/au1000/common/sleeper.S → arch/mips/alchemy/common/sleeper.S

@@ -79,12 +79,12 @@ LEAF(save_and_sleep)
 /* Put SDRAM into self refresh.  Preload instructions into cache,
  * issue a precharge, then auto refresh, then sleep commands to it.
  */
- 	la	t0, sdsleep
+	la	t0, sdsleep
 	.set	mips3
- 	cache	0x14, 0(t0)
- 	cache	0x14, 32(t0)
- 	cache	0x14, 64(t0)
- 	cache	0x14, 96(t0)
+	cache	0x14, 0(t0)
+	cache	0x14, 32(t0)
+	cache	0x14, 64(t0)
+	cache	0x14, 96(t0)
 	.set	mips0
 
 sdsleep:

+ 0 - 0
arch/mips/au1000/common/time.c → arch/mips/alchemy/common/time.c


+ 0 - 0
arch/mips/au1000/db1x00/Makefile → arch/mips/alchemy/db1x00/Makefile


+ 0 - 0
arch/mips/au1000/db1x00/board_setup.c → arch/mips/alchemy/db1x00/board_setup.c


+ 0 - 0
arch/mips/au1000/db1x00/init.c → arch/mips/alchemy/db1x00/init.c


+ 0 - 0
arch/mips/au1000/db1x00/irqmap.c → arch/mips/alchemy/db1x00/irqmap.c


+ 0 - 0
arch/mips/au1000/mtx-1/Makefile → arch/mips/alchemy/mtx-1/Makefile


+ 0 - 0
arch/mips/au1000/mtx-1/board_setup.c → arch/mips/alchemy/mtx-1/board_setup.c


+ 0 - 0
arch/mips/au1000/mtx-1/init.c → arch/mips/alchemy/mtx-1/init.c


+ 0 - 0
arch/mips/au1000/mtx-1/irqmap.c → arch/mips/alchemy/mtx-1/irqmap.c


+ 0 - 0
arch/mips/au1000/mtx-1/platform.c → arch/mips/alchemy/mtx-1/platform.c


+ 0 - 0
arch/mips/au1000/pb1000/Makefile → arch/mips/alchemy/pb1000/Makefile


+ 0 - 0
arch/mips/au1000/pb1000/board_setup.c → arch/mips/alchemy/pb1000/board_setup.c


+ 0 - 0
arch/mips/au1000/pb1000/init.c → arch/mips/alchemy/pb1000/init.c


+ 0 - 0
arch/mips/au1000/pb1000/irqmap.c → arch/mips/alchemy/pb1000/irqmap.c


+ 0 - 0
arch/mips/au1000/pb1100/Makefile → arch/mips/alchemy/pb1100/Makefile


+ 0 - 0
arch/mips/au1000/pb1100/board_setup.c → arch/mips/alchemy/pb1100/board_setup.c


+ 0 - 0
arch/mips/au1000/pb1100/init.c → arch/mips/alchemy/pb1100/init.c


+ 0 - 0
arch/mips/au1000/pb1100/irqmap.c → arch/mips/alchemy/pb1100/irqmap.c


+ 0 - 0
arch/mips/au1000/pb1200/Makefile → arch/mips/alchemy/pb1200/Makefile


+ 0 - 0
arch/mips/au1000/pb1200/board_setup.c → arch/mips/alchemy/pb1200/board_setup.c


+ 0 - 0
arch/mips/au1000/pb1200/init.c → arch/mips/alchemy/pb1200/init.c


+ 0 - 0
arch/mips/au1000/pb1200/irqmap.c → arch/mips/alchemy/pb1200/irqmap.c


+ 0 - 0
arch/mips/au1000/pb1200/platform.c → arch/mips/alchemy/pb1200/platform.c


+ 0 - 0
arch/mips/au1000/pb1500/Makefile → arch/mips/alchemy/pb1500/Makefile


+ 0 - 0
arch/mips/au1000/pb1500/board_setup.c → arch/mips/alchemy/pb1500/board_setup.c


+ 0 - 0
arch/mips/au1000/pb1500/init.c → arch/mips/alchemy/pb1500/init.c


+ 0 - 0
arch/mips/au1000/pb1500/irqmap.c → arch/mips/alchemy/pb1500/irqmap.c


+ 0 - 0
arch/mips/au1000/pb1550/Makefile → arch/mips/alchemy/pb1550/Makefile


+ 0 - 0
arch/mips/au1000/pb1550/board_setup.c → arch/mips/alchemy/pb1550/board_setup.c


+ 0 - 0
arch/mips/au1000/pb1550/init.c → arch/mips/alchemy/pb1550/init.c


+ 0 - 0
arch/mips/au1000/pb1550/irqmap.c → arch/mips/alchemy/pb1550/irqmap.c


+ 0 - 0
arch/mips/au1000/xxs1500/Makefile → arch/mips/alchemy/xxs1500/Makefile


+ 0 - 0
arch/mips/au1000/xxs1500/board_setup.c → arch/mips/alchemy/xxs1500/board_setup.c


+ 0 - 0
arch/mips/au1000/xxs1500/init.c → arch/mips/alchemy/xxs1500/init.c


+ 0 - 0
arch/mips/au1000/xxs1500/irqmap.c → arch/mips/alchemy/xxs1500/irqmap.c


+ 0 - 0
include/asm-mips/Kbuild → arch/mips/include/asm/Kbuild


+ 0 - 0
include/asm-mips/a.out.h → arch/mips/include/asm/a.out.h


+ 0 - 0
include/asm-mips/abi.h → arch/mips/include/asm/abi.h


+ 0 - 0
include/asm-mips/addrspace.h → arch/mips/include/asm/addrspace.h


+ 0 - 0
include/asm-mips/asm.h → arch/mips/include/asm/asm.h


+ 0 - 0
include/asm-mips/asmmacro-32.h → arch/mips/include/asm/asmmacro-32.h


+ 0 - 0
include/asm-mips/asmmacro-64.h → arch/mips/include/asm/asmmacro-64.h


+ 0 - 0
include/asm-mips/asmmacro.h → arch/mips/include/asm/asmmacro.h


+ 0 - 0
include/asm-mips/atomic.h → arch/mips/include/asm/atomic.h


+ 0 - 0
include/asm-mips/auxvec.h → arch/mips/include/asm/auxvec.h


+ 0 - 0
include/asm-mips/barrier.h → arch/mips/include/asm/barrier.h


+ 0 - 0
include/asm-mips/bcache.h → arch/mips/include/asm/bcache.h


+ 0 - 0
include/asm-mips/bitops.h → arch/mips/include/asm/bitops.h


+ 0 - 0
include/asm-mips/bootinfo.h → arch/mips/include/asm/bootinfo.h


+ 0 - 0
include/asm-mips/branch.h → arch/mips/include/asm/branch.h


+ 0 - 0
include/asm-mips/break.h → arch/mips/include/asm/break.h


+ 0 - 0
include/asm-mips/bug.h → arch/mips/include/asm/bug.h


+ 0 - 0
include/asm-mips/bugs.h → arch/mips/include/asm/bugs.h


+ 0 - 0
include/asm-mips/byteorder.h → arch/mips/include/asm/byteorder.h


+ 0 - 0
include/asm-mips/cache.h → arch/mips/include/asm/cache.h


+ 0 - 0
include/asm-mips/cachectl.h → arch/mips/include/asm/cachectl.h


+ 0 - 0
include/asm-mips/cacheflush.h → arch/mips/include/asm/cacheflush.h


+ 0 - 0
include/asm-mips/cacheops.h → arch/mips/include/asm/cacheops.h


+ 0 - 0
include/asm-mips/checksum.h → arch/mips/include/asm/checksum.h


+ 0 - 0
include/asm-mips/cmp.h → arch/mips/include/asm/cmp.h


+ 0 - 0
include/asm-mips/cmpxchg.h → arch/mips/include/asm/cmpxchg.h


+ 0 - 0
include/asm-mips/compat-signal.h → arch/mips/include/asm/compat-signal.h


+ 0 - 0
include/asm-mips/compat.h → arch/mips/include/asm/compat.h


+ 0 - 0
include/asm-mips/compiler.h → arch/mips/include/asm/compiler.h


+ 0 - 0
include/asm-mips/cpu-features.h → arch/mips/include/asm/cpu-features.h


+ 6 - 0
include/asm-mips/cpu-info.h → arch/mips/include/asm/cpu-info.h

@@ -12,6 +12,8 @@
 #ifndef __ASM_CPU_INFO_H
 #define __ASM_CPU_INFO_H
 
+#include <linux/types.h>
+
 #include <asm/cache.h>
 
 /*
@@ -69,6 +71,10 @@ struct cpuinfo_mips {
 	int			tc_id;   /* Thread Context number */
 #endif
 	void 			*data;	/* Additional data */
+	unsigned int		watch_reg_count;   /* Number that exist */
+	unsigned int		watch_reg_use_cnt; /* Usable by ptrace */
+#define NUM_WATCH_REGS 4
+	u16			watch_reg_masks[NUM_WATCH_REGS];
 } __attribute__((aligned(SMP_CACHE_BYTES)));
 
 extern struct cpuinfo_mips cpu_data[];

+ 0 - 0
include/asm-mips/cpu.h → arch/mips/include/asm/cpu.h


+ 0 - 0
include/asm-mips/cputime.h → arch/mips/include/asm/cputime.h


+ 0 - 0
include/asm-mips/current.h → arch/mips/include/asm/current.h


+ 0 - 0
include/asm-mips/debug.h → arch/mips/include/asm/debug.h


+ 0 - 0
include/asm-mips/dec/ecc.h → arch/mips/include/asm/dec/ecc.h


+ 0 - 0
include/asm-mips/dec/interrupts.h → arch/mips/include/asm/dec/interrupts.h


+ 0 - 0
include/asm-mips/dec/ioasic.h → arch/mips/include/asm/dec/ioasic.h


+ 0 - 0
include/asm-mips/dec/ioasic_addrs.h → arch/mips/include/asm/dec/ioasic_addrs.h


+ 0 - 0
include/asm-mips/dec/ioasic_ints.h → arch/mips/include/asm/dec/ioasic_ints.h


+ 0 - 0
include/asm-mips/dec/kn01.h → arch/mips/include/asm/dec/kn01.h


+ 0 - 0
include/asm-mips/dec/kn02.h → arch/mips/include/asm/dec/kn02.h


+ 0 - 0
include/asm-mips/dec/kn02ba.h → arch/mips/include/asm/dec/kn02ba.h


+ 0 - 0
include/asm-mips/dec/kn02ca.h → arch/mips/include/asm/dec/kn02ca.h


+ 0 - 0
include/asm-mips/dec/kn02xa.h → arch/mips/include/asm/dec/kn02xa.h


Some files were not shown because too many files changed in this diff