summaryrefslogtreecommitdiff
path: root/target/m68k/qemu-m68k/patches/3.18.6/qemu-coldfire.patch
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-02-08 20:09:58 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2015-02-09 19:09:47 +0100
commitfbddcd227c26995d2933517b9dbb2d7dd3d5c9b6 (patch)
tree5ebc2dd46911e16b49dea7a569deb7879813fc40 /target/m68k/qemu-m68k/patches/3.18.6/qemu-coldfire.patch
parent2456b5f30e399a30e9064dd7c42154386cff19c4 (diff)
add basic support for raspberry pi2
Introduce new board symbols for embedded systems, which use the similar board as basis. As for example raspberry pi and raspberry pi2. And some more updates: Update binutils to 2.25, set gcc 4.9.2 as default. Update glibc to 2.21, set as default. Update gdb to 7.8.2. Update kodi to latest release.
Diffstat (limited to 'target/m68k/qemu-m68k/patches/3.18.6/qemu-coldfire.patch')
-rw-r--r--target/m68k/qemu-m68k/patches/3.18.6/qemu-coldfire.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/target/m68k/qemu-m68k/patches/3.18.6/qemu-coldfire.patch b/target/m68k/qemu-m68k/patches/3.18.6/qemu-coldfire.patch
new file mode 100644
index 000000000..14d2f610b
--- /dev/null
+++ b/target/m68k/qemu-m68k/patches/3.18.6/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.17.7.orig/arch/m68k/Kconfig.cpu linux-3.17.7/arch/m68k/Kconfig.cpu
+--- linux-3.17.7.orig/arch/m68k/Kconfig.cpu 2014-12-16 11:37:26.000000000 -0600
++++ linux-3.17.7/arch/m68k/Kconfig.cpu 2014-12-27 14:12:19.291459730 -0600
+@@ -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.
+