diff options
author | Waldemar Brodkorb <wbrodkorb@conet.de> | 2014-12-07 05:00:48 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbrodkorb@conet.de> | 2014-12-07 05:00:48 +0100 |
commit | 444d0ea061cabd9851ba0e144a94a10271ca6c79 (patch) | |
tree | 515486402bd57f764af8fc97a86b59e94634bb2d /target/m68k/qemu-m68k/patches/3.17.4/qemu-coldfire.patch | |
parent | 36d63c60dbe2d074dff81a6af7dd77b62b5f23dc (diff) | |
parent | 4c9ab0d218fbf8f29ce4250f2b9941e6feae0651 (diff) |
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'target/m68k/qemu-m68k/patches/3.17.4/qemu-coldfire.patch')
-rw-r--r-- | target/m68k/qemu-m68k/patches/3.17.4/qemu-coldfire.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/target/m68k/qemu-m68k/patches/3.17.4/qemu-coldfire.patch b/target/m68k/qemu-m68k/patches/3.17.4/qemu-coldfire.patch new file mode 100644 index 000000000..503fe8ef3 --- /dev/null +++ b/target/m68k/qemu-m68k/patches/3.17.4/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. + |