uClibc patches for sh-2
Paul Mundt
lethal at linux-sh.org
Mon Oct 16 14:59:10 UTC 2006
And one thing I forgot to mention..
On Mon, Oct 16, 2006 at 02:31:07PM +0100, Mark Shinwell wrote:
> Index: libc/sysdeps/linux/sh/vfork.S
> ===================================================================
> --- libc/sysdeps/linux/sh/vfork.S (revision 16216)
> +++ libc/sysdeps/linux/sh/vfork.S (working copy)
> @@ -39,9 +40,9 @@
>
> __vfork:
> mov.w .L2, r3
> - trapa #0x10
> + trapa #__SH_SYSCALL_TRAP_BASE
> mov r0, r1
> -#ifdef __sh2__
> +#ifdef __CONFIG_SH2__
> // 12 arithmetic shifts for the crappy sh2, because shad doesn't exist!
> shar r1
> shar r1
SH-2A does support shad (and most of the other SH-3/4 instructions), we
probably don't want to tie it to SH-2 too tightly, particularly if we
start doing something in userspace with the SH-2A 32-bit instructions. We
pass subtype information in via ELF_HWCAP on the other parts, we could
likely do the same for ELF FDPIC, but we're stuck for doing this
dynamically in binfmt_flat.
More information about the uClibc
mailing list