aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-07-11 02:30:19 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-07-11 02:30:19 +0000
commit526b1cd3b8841290a2c2002aa8931bbb9bf36396 (patch)
treef818928972a08009be7b638559b90c2a69ef54c8 /target/linux
parent8d50438cc16359546ebf2b4221a107fce007872c (diff)
downloadupstream-526b1cd3b8841290a2c2002aa8931bbb9bf36396.tar.gz
upstream-526b1cd3b8841290a2c2002aa8931bbb9bf36396.tar.bz2
upstream-526b1cd3b8841290a2c2002aa8931bbb9bf36396.zip
mips: do not use the prefetch instruction on R4K (MIPS32_R1), the ISA does not implement it
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16771 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/atheros/patches-2.6.30/100-board.patch4
-rw-r--r--target/linux/generic-2.6/patches-2.6.28/025-mips_r4k_no_prefetch.patch10
-rw-r--r--target/linux/generic-2.6/patches-2.6.30/026-mips_r4k_no_prefetch.patch10
3 files changed, 22 insertions, 2 deletions
diff --git a/target/linux/atheros/patches-2.6.30/100-board.patch b/target/linux/atheros/patches-2.6.30/100-board.patch
index 052e887d25..c063fa348f 100644
--- a/target/linux/atheros/patches-2.6.30/100-board.patch
+++ b/target/linux/atheros/patches-2.6.30/100-board.patch
@@ -20,7 +20,7 @@
config MIPS_COBALT
bool "Cobalt Server"
select CEVT_R4K
-@@ -632,6 +645,7 @@ config CAVIUM_OCTEON_REFERENCE_BOARD
+@@ -633,6 +646,7 @@ config CAVIUM_OCTEON_REFERENCE_BOARD
endchoice
@@ -30,7 +30,7 @@
source "arch/mips/jazz/Kconfig"
--- a/arch/mips/Makefile
+++ b/arch/mips/Makefile
-@@ -290,6 +290,13 @@ libs-$(CONFIG_MIPS_XXS1500) += arch/mips
+@@ -283,6 +283,13 @@ libs-$(CONFIG_MIPS_XXS1500) += arch/mips
load-$(CONFIG_MIPS_XXS1500) += 0xffffffff80100000
#
diff --git a/target/linux/generic-2.6/patches-2.6.28/025-mips_r4k_no_prefetch.patch b/target/linux/generic-2.6/patches-2.6.28/025-mips_r4k_no_prefetch.patch
new file mode 100644
index 0000000000..6e26062b4b
--- /dev/null
+++ b/target/linux/generic-2.6/patches-2.6.28/025-mips_r4k_no_prefetch.patch
@@ -0,0 +1,10 @@
+--- a/arch/mips/Kconfig
++++ b/arch/mips/Kconfig
+@@ -991,7 +991,6 @@ config CPU_MIPS32_R1
+ bool "MIPS32 Release 1"
+ depends on SYS_HAS_CPU_MIPS32_R1
+ select CPU_HAS_LLSC
+- select CPU_HAS_PREFETCH
+ select CPU_SUPPORTS_32BIT_KERNEL
+ select CPU_SUPPORTS_HIGHMEM
+ help
diff --git a/target/linux/generic-2.6/patches-2.6.30/026-mips_r4k_no_prefetch.patch b/target/linux/generic-2.6/patches-2.6.30/026-mips_r4k_no_prefetch.patch
new file mode 100644
index 0000000000..e2fb97e383
--- /dev/null
+++ b/target/linux/generic-2.6/patches-2.6.30/026-mips_r4k_no_prefetch.patch
@@ -0,0 +1,10 @@
+--- a/arch/mips/Kconfig
++++ b/arch/mips/Kconfig
+@@ -1036,7 +1036,6 @@ config CPU_MIPS32_R1
+ bool "MIPS32 Release 1"
+ depends on SYS_HAS_CPU_MIPS32_R1
+ select CPU_HAS_LLSC
+- select CPU_HAS_PREFETCH
+ select CPU_SUPPORTS_32BIT_KERNEL
+ select CPU_SUPPORTS_HIGHMEM
+ help