From e0c1a232a942177fe01a8ffc9ffe1606d886bbd5 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 13 Jun 2015 14:30:59 -0500 Subject: update kernel to 4.0.5 --- .../qemu-m68k/patches/4.0.5/qemu-coldfire.patch | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 target/m68k/qemu-m68k/patches/4.0.5/qemu-coldfire.patch (limited to 'target/m68k/qemu-m68k/patches/4.0.5/qemu-coldfire.patch') diff --git a/target/m68k/qemu-m68k/patches/4.0.5/qemu-coldfire.patch b/target/m68k/qemu-m68k/patches/4.0.5/qemu-coldfire.patch new file mode 100644 index 000000000..14d2f610b --- /dev/null +++ b/target/m68k/qemu-m68k/patches/4.0.5/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 + +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. + -- cgit v1.2.3