diff options
author | Eric Andersen <andersen@codepoet.org> | 2006-09-11 18:46:39 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2006-09-11 18:46:39 +0000 |
commit | 7f9010b2d3df3716c67fc00a0f1ec3c5fd127311 (patch) | |
tree | b9c200d8eadf8d6f7ad9d174cd0570699f7a199e /libc/sysdeps/linux/mips | |
parent | a22508d835ca1d7657d5ec41667e466e5e88fd9f (diff) |
Atsushi Nemoto writes:
The "make headers_install" in kernel 2.6.18 does not export
asm-mips/asm.h, asm-mips/regdef.h and asm-mips/sysmips.h. Do not use
them. We can use sys/asm.h and sys/regdef.h instead. The sysmips.h
part of this patch is came from glibc 2.4 code.
Diffstat (limited to 'libc/sysdeps/linux/mips')
-rw-r--r-- | libc/sysdeps/linux/mips/clone.S | 2 | ||||
-rw-r--r-- | libc/sysdeps/linux/mips/pipe.S | 4 | ||||
-rw-r--r-- | libc/sysdeps/linux/mips/sys/sysmips.h | 12 | ||||
-rw-r--r-- | libc/sysdeps/linux/mips/syscall.S | 4 |
4 files changed, 15 insertions, 7 deletions
diff --git a/libc/sysdeps/linux/mips/clone.S b/libc/sysdeps/linux/mips/clone.S index a562cadfb..7e3838a35 100644 --- a/libc/sysdeps/linux/mips/clone.S +++ b/libc/sysdeps/linux/mips/clone.S @@ -25,7 +25,7 @@ #include <sys/regdef.h> #define _ERRNO_H 1 #include <bits/errno.h> -#include <asm/asm.h> +#include <sys/asm.h> /* int clone(int (*fn)(void *arg), void *child_stack, int flags, void *arg) */ diff --git a/libc/sysdeps/linux/mips/pipe.S b/libc/sysdeps/linux/mips/pipe.S index 0f62ed2d3..1d9c2f889 100644 --- a/libc/sysdeps/linux/mips/pipe.S +++ b/libc/sysdeps/linux/mips/pipe.S @@ -8,9 +8,9 @@ /*see uClibc's sh/pipe.c and glibc-2.2.4's mips/pipe.S */ #include <features.h> -#include <asm/asm.h> +#include <sys/asm.h> #include <asm/unistd.h> -#include <asm/regdef.h> +#include <sys/regdef.h> .globl pipe .ent pipe, 0 diff --git a/libc/sysdeps/linux/mips/sys/sysmips.h b/libc/sysdeps/linux/mips/sys/sysmips.h index 7760c755a..6a63dc2b2 100644 --- a/libc/sysdeps/linux/mips/sys/sysmips.h +++ b/libc/sysdeps/linux/mips/sys/sysmips.h @@ -22,9 +22,17 @@ #include <features.h> /* - * Get the kernel definition for sysmips(2) + * Commands for the sysmips(2) call + * + * sysmips(2) is deprecated - though some existing software uses it. + * We only support the following commands. Sysmips exists for compatibility + * purposes only so new software should avoid it. */ -#include <asm/sysmips.h> +#define SETNAME 1 /* set hostname */ +#define FLUSH_CACHE 3 /* writeback and invalidate caches */ +#define MIPS_FIXADE 7 /* control address error fixing */ +#define MIPS_RDNVRAM 10 /* read NVRAM */ +#define MIPS_ATOMIC_SET 2001 /* atomically set variable */ __BEGIN_DECLS diff --git a/libc/sysdeps/linux/mips/syscall.S b/libc/sysdeps/linux/mips/syscall.S index ce2f1292f..d5b1cbe3c 100644 --- a/libc/sysdeps/linux/mips/syscall.S +++ b/libc/sysdeps/linux/mips/syscall.S @@ -17,8 +17,8 @@ 02111-1307 USA. */ #include <features.h> -#include <asm/asm.h> -#include <asm/regdef.h> +#include <sys/asm.h> +#include <sys/regdef.h> #ifdef __PIC__ .option pic2 |