[PATCH] posix_favise{64} error handling fixes [was Re: fadvise gclibc vs uclibc]
Paul Mundt
lethal at linux-sh.org
Wed Sep 24 10:36:57 UTC 2008
On Mon, Sep 15, 2008 at 01:55:56PM +0200, Carmelo AMOROSO wrote:
> Index: libc/sysdeps/linux/sh/bits/syscalls.h
> ===================================================================
> --- libc/sysdeps/linux/sh/bits/syscalls.h (revision 23401)
> +++ libc/sysdeps/linux/sh/bits/syscalls.h (working copy)
> @@ -140,6 +140,151 @@
> __syscall_return(type,__sc0); \
> }
>
> +#define SYSCALL_INST_STR0 "trapa #0x10\n\t"
> +#define SYSCALL_INST_STR1 "trapa #0x11\n\t"
> +#define SYSCALL_INST_STR2 "trapa #0x12\n\t"
> +#define SYSCALL_INST_STR3 "trapa #0x13\n\t"
> +#define SYSCALL_INST_STR4 "trapa #0x14\n\t"
> +#define SYSCALL_INST_STR5 "trapa #0x15\n\t"
> +#define SYSCALL_INST_STR6 "trapa #0x16\n\t"
> +
This breaks SH-2/SH-2A, you should be using __SH_SYSCALL_TRAP_BASE here.
More information about the uClibc
mailing list