update kernel to 3.18.14, refresh realtime and rpi patches
[openadk.git] / target / m68k / qemu-m68k / patches / 3.18.14 / qemu-coldfire.patch
blob14d2f610ba24480448c0374c7c0812ce27815aba
1 m68k: enabled software emulation of separate supervisor/user stack
3 Recent Coldfires have separate supervisor and user stack pointers, but
4 since older Coldfires didn't have that, the Linux kernel has a kind of
5 emulation mechanism for those pointers.
7 Apparently, according to the Kconfig.cpu file, the 5208 is supposed to
8 support such separate pointers, but Qemu doesn't implement it. So we
9 cheat a bit here and force the usage of emulated separate stack
10 pointers.
12 Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
14 diff -Nur linux-3.17.7.orig/arch/m68k/Kconfig.cpu linux-3.17.7/arch/m68k/Kconfig.cpu
15 --- linux-3.17.7.orig/arch/m68k/Kconfig.cpu 2014-12-16 11:37:26.000000000 -0600
16 +++ linux-3.17.7/arch/m68k/Kconfig.cpu 2014-12-27 14:12:19.291459730 -0600
17 @@ -146,6 +146,7 @@
18 depends on !MMU
19 select GENERIC_CLOCKEVENTS
20 select HAVE_CACHE_SPLIT
21 + select COLDFIRE_SW_A7
22 help
23 Freescale Coldfire 5207/5208 processor support.