[PATCH] pull missing parts for mips N32/N64 from glibc
Peter S. Mazinger
ps.m at gmx.net
Wed Jul 5 08:11:54 PDT 2006
On Wed, 5 Jul 2006, Atsushi Nemoto wrote:
> It seems these codes dropped when importing from glibc. This is
> required for mips64.
>
> diff -urNp uClibc-20060611/libc/sysdeps/linux/mips/sigaction.c uClibc/libc/sysdeps/linux/mips/sigaction.c
> --- uClibc-20060611/libc/sysdeps/linux/mips/sigaction.c 2006-06-11 16:11:26.000000000 +0900
> +++ uClibc/libc/sysdeps/linux/mips/sigaction.c 2006-07-05 22:04:44.000000000 +0900
> @@ -33,6 +33,16 @@ extern __typeof(sigaction) __libc_sigact
>
> libc_hidden_proto(memcpy)
>
> +#if _MIPS_SIM != _ABIO32
> +
> +# ifdef __NR_rt_sigreturn
> +static void restore_rt (void) asm ("__restore_rt");
> +# endif
> +# ifdef __NR_sigreturn
> +static void restore (void) asm ("__restore");
> +# endif
> +#endif
please do s/asm/__asm__/ (else compiling w/ -std=c99 breaks)
Peter
More information about the uClibc
mailing list