[klibc] [PATCH] fix m68k support

Thorsten Glaser tg at mirbsd.de
Thu Feb 16 13:42:57 PST 2012


Dixi quod…

>- fix syscall API and vfork
>- support 6-argument syscalls
>- add open/openat special handling for non-regparm arches

For the archives, and to keep everyone in the loop (said
this on IRC already, in #klibc):

This patch is part of klibc (2.0~rc2-0.1) uploaded to Debian
unstable (which otherwise is git HEAD as of 11 Feb 2012).

I’ve built mksh against it (using an older mkstemp.c externally,
since the latest patch requires the libc_init.c change, which I
didn’t add to the Debian package) dynamically, and it worked.

Furthermore, I’ve built a minimal-ish sv4cpio archive (to be
passed as initrd) on m68k consisting of:
• klibc-utils
• that mksh binary
• a /init shell script to mount stuff and give a shell

ragnar76 successfully booted that (with the kernel image from
linux-image-3.2.0-1-atari_3.2.4-1_m68k.deb of proper Debian
unstable) on real hardware.

Andreas, if you would like a different jump instruction, feel
free to update my patch, as I bow to your superiour knowledge.
Otherwise I submit this as-is, tested.

bye,
//mirabilos
-- 
Support mksh as /bin/sh and RoQA dash NOW!
‣ src:bash (246 (265) bugs: 1 RC, 172 (186) I&N, 73 (78) M&W, 0 F&P)
‣ src:dash (74 (85) bugs: 3 RC, 27 (30) I&N, 44 (52) M&W, 0 F&P)
‣ src:mksh (1 bug: 0 RC, 0 I&N, 1 M&W, 0 F&P)
http://qa.debian.org/data/bts/graphs/d/dash.png is pretty red, innit?



More information about the klibc mailing list