diff options
| author | Jeff Garzik <jgarzik@pobox.com> | 2005-09-08 05:37:58 -0400 |
|---|---|---|
| committer | Jeff Garzik <jgarzik@pobox.com> | 2005-09-08 05:37:58 -0400 |
| commit | 5a2cec83a9bb1b4295aa8ab728fcb8ca1811a33c (patch) | |
| tree | 2f83dc6949763e77cf6422e696dc6146684dcf4e /arch/um | |
| parent | f2c853bca542f5ac0b036377637192a74f2091c2 (diff) | |
| parent | caf39e87cc1182f7dae84eefc43ca14d54c78ef9 (diff) | |
Merge /spare/repo/linux-2.6/
Diffstat (limited to 'arch/um')
| -rw-r--r-- | arch/um/Makefile-i386 | 2 | ||||
| -rw-r--r-- | arch/um/include/common-offsets.h | 1 | ||||
| -rw-r--r-- | arch/um/include/um_uaccess.h | 7 | ||||
| -rw-r--r-- | arch/um/kernel/mem.c | 2 | ||||
| -rw-r--r-- | arch/um/os-Linux/Makefile | 3 | ||||
| -rw-r--r-- | arch/um/os-Linux/elf_aux.c | 3 | ||||
| -rw-r--r-- | arch/um/sys-i386/kernel-offsets.c | 1 | ||||
| -rw-r--r-- | arch/um/sys-x86_64/kernel-offsets.c | 1 |
8 files changed, 10 insertions, 10 deletions
diff --git a/arch/um/Makefile-i386 b/arch/um/Makefile-i386 index a777e57dbf89..1ab431a53ac3 100644 --- a/arch/um/Makefile-i386 +++ b/arch/um/Makefile-i386 | |||
| @@ -27,7 +27,7 @@ export LDFLAGS HOSTCFLAGS HOSTLDFLAGS UML_OBJCOPYFLAGS | |||
| 27 | endif | 27 | endif |
| 28 | endif | 28 | endif |
| 29 | 29 | ||
| 30 | CFLAGS += -U__$(SUBARCH)__ -U$(SUBARCH) $(STUB_CFLAGS) | 30 | CFLAGS += -U__$(SUBARCH)__ -U$(SUBARCH) |
| 31 | 31 | ||
| 32 | ifneq ($(CONFIG_GPROF),y) | 32 | ifneq ($(CONFIG_GPROF),y) |
| 33 | ARCH_CFLAGS += -DUM_FASTCALL | 33 | ARCH_CFLAGS += -DUM_FASTCALL |
diff --git a/arch/um/include/common-offsets.h b/arch/um/include/common-offsets.h index d705daa2d854..0aa620970adb 100644 --- a/arch/um/include/common-offsets.h +++ b/arch/um/include/common-offsets.h | |||
| @@ -12,3 +12,4 @@ DEFINE_STR(UM_KERN_WARNING, KERN_WARNING); | |||
| 12 | DEFINE_STR(UM_KERN_NOTICE, KERN_NOTICE); | 12 | DEFINE_STR(UM_KERN_NOTICE, KERN_NOTICE); |
| 13 | DEFINE_STR(UM_KERN_INFO, KERN_INFO); | 13 | DEFINE_STR(UM_KERN_INFO, KERN_INFO); |
| 14 | DEFINE_STR(UM_KERN_DEBUG, KERN_DEBUG); | 14 | DEFINE_STR(UM_KERN_DEBUG, KERN_DEBUG); |
| 15 | DEFINE(HOST_ELF_CLASS, ELF_CLASS); | ||
diff --git a/arch/um/include/um_uaccess.h b/arch/um/include/um_uaccess.h index 6e348cb6de24..84c0868cd561 100644 --- a/arch/um/include/um_uaccess.h +++ b/arch/um/include/um_uaccess.h | |||
| @@ -20,13 +20,6 @@ | |||
| 20 | #define access_ok(type, addr, size) \ | 20 | #define access_ok(type, addr, size) \ |
| 21 | CHOOSE_MODE_PROC(access_ok_tt, access_ok_skas, type, addr, size) | 21 | CHOOSE_MODE_PROC(access_ok_tt, access_ok_skas, type, addr, size) |
| 22 | 22 | ||
| 23 | /* this function will go away soon - use access_ok() instead */ | ||
| 24 | static inline int __deprecated verify_area(int type, const void __user *addr, unsigned long size) | ||
| 25 | { | ||
| 26 | return (CHOOSE_MODE_PROC(verify_area_tt, verify_area_skas, type, addr, | ||
| 27 | size)); | ||
| 28 | } | ||
| 29 | |||
| 30 | static inline int copy_from_user(void *to, const void __user *from, int n) | 23 | static inline int copy_from_user(void *to, const void __user *from, int n) |
| 31 | { | 24 | { |
| 32 | return(CHOOSE_MODE_PROC(copy_from_user_tt, copy_from_user_skas, to, | 25 | return(CHOOSE_MODE_PROC(copy_from_user_tt, copy_from_user_skas, to, |
diff --git a/arch/um/kernel/mem.c b/arch/um/kernel/mem.c index 5597bd39e6b5..64fa062cc119 100644 --- a/arch/um/kernel/mem.c +++ b/arch/um/kernel/mem.c | |||
| @@ -196,7 +196,7 @@ static void init_highmem(void) | |||
| 196 | 196 | ||
| 197 | static void __init fixaddr_user_init( void) | 197 | static void __init fixaddr_user_init( void) |
| 198 | { | 198 | { |
| 199 | #if CONFIG_ARCH_REUSE_HOST_VSYSCALL_AREA | 199 | #ifdef CONFIG_ARCH_REUSE_HOST_VSYSCALL_AREA |
| 200 | long size = FIXADDR_USER_END - FIXADDR_USER_START; | 200 | long size = FIXADDR_USER_END - FIXADDR_USER_START; |
| 201 | pgd_t *pgd; | 201 | pgd_t *pgd; |
| 202 | pud_t *pud; | 202 | pud_t *pud; |
diff --git a/arch/um/os-Linux/Makefile b/arch/um/os-Linux/Makefile index d3c1560e3ed8..7a1662419c0c 100644 --- a/arch/um/os-Linux/Makefile +++ b/arch/um/os-Linux/Makefile | |||
| @@ -9,6 +9,9 @@ obj-y = aio.o elf_aux.o file.o process.o signal.o start_up.o time.o tt.o \ | |||
| 9 | USER_OBJS := aio.o elf_aux.o file.o process.o signal.o start_up.o time.o tt.o \ | 9 | USER_OBJS := aio.o elf_aux.o file.o process.o signal.o start_up.o time.o tt.o \ |
| 10 | tty.o | 10 | tty.o |
| 11 | 11 | ||
| 12 | elf_aux.o: $(ARCH_DIR)/kernel-offsets.h | ||
| 13 | CFLAGS_elf_aux.o += -I$(objtree)/arch/um | ||
| 14 | |||
| 12 | CFLAGS_user_syms.o += -DSUBARCH_$(SUBARCH) | 15 | CFLAGS_user_syms.o += -DSUBARCH_$(SUBARCH) |
| 13 | 16 | ||
| 14 | HAVE_AIO_ABI := $(shell [ -r /usr/include/linux/aio_abi.h ] && \ | 17 | HAVE_AIO_ABI := $(shell [ -r /usr/include/linux/aio_abi.h ] && \ |
diff --git a/arch/um/os-Linux/elf_aux.c b/arch/um/os-Linux/elf_aux.c index 4cca3e9c23fe..1399520a8588 100644 --- a/arch/um/os-Linux/elf_aux.c +++ b/arch/um/os-Linux/elf_aux.c | |||
| @@ -12,8 +12,9 @@ | |||
| 12 | #include "init.h" | 12 | #include "init.h" |
| 13 | #include "elf_user.h" | 13 | #include "elf_user.h" |
| 14 | #include "mem_user.h" | 14 | #include "mem_user.h" |
| 15 | #include <kernel-offsets.h> | ||
| 15 | 16 | ||
| 16 | #if ELF_CLASS == ELFCLASS32 | 17 | #if HOST_ELF_CLASS == ELFCLASS32 |
| 17 | typedef Elf32_auxv_t elf_auxv_t; | 18 | typedef Elf32_auxv_t elf_auxv_t; |
| 18 | #else | 19 | #else |
| 19 | typedef Elf64_auxv_t elf_auxv_t; | 20 | typedef Elf64_auxv_t elf_auxv_t; |
diff --git a/arch/um/sys-i386/kernel-offsets.c b/arch/um/sys-i386/kernel-offsets.c index 9f8ecd1fdd96..a1070af2bcd8 100644 --- a/arch/um/sys-i386/kernel-offsets.c +++ b/arch/um/sys-i386/kernel-offsets.c | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | #include <linux/stddef.h> | 2 | #include <linux/stddef.h> |
| 3 | #include <linux/sched.h> | 3 | #include <linux/sched.h> |
| 4 | #include <linux/time.h> | 4 | #include <linux/time.h> |
| 5 | #include <linux/elf.h> | ||
| 5 | #include <asm/page.h> | 6 | #include <asm/page.h> |
| 6 | 7 | ||
| 7 | #define DEFINE(sym, val) \ | 8 | #define DEFINE(sym, val) \ |
diff --git a/arch/um/sys-x86_64/kernel-offsets.c b/arch/um/sys-x86_64/kernel-offsets.c index 220e875cbe29..998541eade41 100644 --- a/arch/um/sys-x86_64/kernel-offsets.c +++ b/arch/um/sys-x86_64/kernel-offsets.c | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | #include <linux/stddef.h> | 2 | #include <linux/stddef.h> |
| 3 | #include <linux/sched.h> | 3 | #include <linux/sched.h> |
| 4 | #include <linux/time.h> | 4 | #include <linux/time.h> |
| 5 | #include <linux/elf.h> | ||
| 5 | #include <asm/page.h> | 6 | #include <asm/page.h> |
| 6 | 7 | ||
| 7 | #define DEFINE(sym, val) \ | 8 | #define DEFINE(sym, val) \ |
