diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2014-12-28 22:25:29 -0600 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-12-28 22:27:34 -0600 |
commit | 0e3585dae500fb0a976888f5dbdf3a37769680ec (patch) | |
tree | 89f0f3768794a9daf3253c8a2e832c3ebb3a582a /target/m68k/qemu-m68k/patches/3.14.26/qemu-coldfire.patch | |
parent | 6488ae4a7b82ac7c95adc34281459c373fba6be3 (diff) |
bring coldfire support in shape
Binutils 2.24 is required to get a working kernel.
Ethernet in Qemu is still broken.
Qemu Patch is still rquired in 2.2.0.
Only kernel+initramfs is working.
It seems the signal handler problem is gone with
sash and simpleinit.
Diffstat (limited to 'target/m68k/qemu-m68k/patches/3.14.26/qemu-coldfire.patch')
-rw-r--r-- | target/m68k/qemu-m68k/patches/3.14.26/qemu-coldfire.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/target/m68k/qemu-m68k/patches/3.14.26/qemu-coldfire.patch b/target/m68k/qemu-m68k/patches/3.14.26/qemu-coldfire.patch new file mode 100644 index 000000000..5bbda8c4d --- /dev/null +++ b/target/m68k/qemu-m68k/patches/3.14.26/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.14.26.orig/arch/m68k/Kconfig.cpu linux-3.14.26/arch/m68k/Kconfig.cpu +--- linux-3.14.26.orig/arch/m68k/Kconfig.cpu 2014-12-06 17:56:06.000000000 -0600 ++++ linux-3.14.26/arch/m68k/Kconfig.cpu 2014-12-28 03:00:39.279037664 -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. + |