summaryrefslogtreecommitdiff
path: root/target/linux/patches/3.16
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-08-13 17:45:22 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-08-14 08:33:52 +0200
commit9cccc249d31d3b6a206c63eaea0f50bafbc73bc3 (patch)
treed40f3b80a6810241740d116d520154a04a2b8a58 /target/linux/patches/3.16
parent1c698117789ea48479e3efd7106096382201d744 (diff)
first boot in qemu works now.
Diffstat (limited to 'target/linux/patches/3.16')
-rw-r--r--target/linux/patches/3.16/qemu-coldfire.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/target/linux/patches/3.16/qemu-coldfire.patch b/target/linux/patches/3.16/qemu-coldfire.patch
new file mode 100644
index 000000000..503fe8ef3
--- /dev/null
+++ b/target/linux/patches/3.16/qemu-coldfire.patch
@@ -0,0 +1,24 @@
+m68k: enabled software emulation of separate supervisor/user stack
+
+Recent Coldfires have separate supervisor and user stack pointers, but
+since older Coldfires didn't have that, the Linux kernel has a kind of
+emulation mechanism for those pointers.
+
+Apparently, according to the Kconfig.cpu file, the 5208 is supposed to
+support such separate pointers, but Qemu doesn't implement it. So we
+cheat a bit here and force the usage of emulated separate stack
+pointers.
+
+Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
+
+diff -Nur linux-3.16.orig/arch/m68k/Kconfig.cpu linux-3.16/arch/m68k/Kconfig.cpu
+--- linux-3.16.orig/arch/m68k/Kconfig.cpu 2014-08-04 00:25:02.000000000 +0200
++++ linux-3.16/arch/m68k/Kconfig.cpu 2014-08-13 16:58:59.568332805 +0200
+@@ -146,6 +146,7 @@
+ depends on !MMU
+ select GENERIC_CLOCKEVENTS
+ select HAVE_CACHE_SPLIT
++ select COLDFIRE_SW_A7
+ help
+ Freescale Coldfire 5207/5208 processor support.
+