diff options
| author | Jeff Garzik <jeff@garzik.org> | 2006-04-20 18:36:05 -0400 |
|---|---|---|
| committer | Jeff Garzik <jeff@garzik.org> | 2006-04-20 18:36:05 -0400 |
| commit | 857c68f733eea07f11a061caea43a38fed61adb7 (patch) | |
| tree | 4567a9e91f717b22143ac1ccb0fb5323ac15afd3 /arch/um/include | |
| parent | 4741c336d27dec3ea68a35659abb8dc82b142388 (diff) | |
| parent | 402a26f0c040077ed6f941eefac5a6971f0d5f40 (diff) | |
Merge branch 'master'
Diffstat (limited to 'arch/um/include')
| -rw-r--r-- | arch/um/include/longjmp.h | 4 | ||||
| -rw-r--r-- | arch/um/include/sysdep-i386/kernel-offsets.h | 2 | ||||
| -rw-r--r-- | arch/um/include/sysdep-x86_64/kernel-offsets.h | 2 |
3 files changed, 6 insertions, 2 deletions
diff --git a/arch/um/include/longjmp.h b/arch/um/include/longjmp.h index 018b3819ab0b..8e7053013f7b 100644 --- a/arch/um/include/longjmp.h +++ b/arch/um/include/longjmp.h | |||
| @@ -4,11 +4,11 @@ | |||
| 4 | #include <setjmp.h> | 4 | #include <setjmp.h> |
| 5 | #include "os.h" | 5 | #include "os.h" |
| 6 | 6 | ||
| 7 | #define UML_SIGLONGJMP(buf, val) do { \ | 7 | #define UML_LONGJMP(buf, val) do { \ |
| 8 | longjmp(*buf, val); \ | 8 | longjmp(*buf, val); \ |
| 9 | } while(0) | 9 | } while(0) |
| 10 | 10 | ||
| 11 | #define UML_SIGSETJMP(buf, enable) ({ \ | 11 | #define UML_SETJMP(buf, enable) ({ \ |
| 12 | int n; \ | 12 | int n; \ |
| 13 | enable = get_signals(); \ | 13 | enable = get_signals(); \ |
| 14 | n = setjmp(*buf); \ | 14 | n = setjmp(*buf); \ |
diff --git a/arch/um/include/sysdep-i386/kernel-offsets.h b/arch/um/include/sysdep-i386/kernel-offsets.h index 82f96c574144..2c13de321f2f 100644 --- a/arch/um/include/sysdep-i386/kernel-offsets.h +++ b/arch/um/include/sysdep-i386/kernel-offsets.h | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | #include <linux/stddef.h> | 1 | #include <linux/stddef.h> |
| 2 | #include <linux/sched.h> | 2 | #include <linux/sched.h> |
| 3 | #include <linux/elf.h> | 3 | #include <linux/elf.h> |
| 4 | #include <asm/mman.h> | ||
| 4 | 5 | ||
| 5 | #define DEFINE(sym, val) \ | 6 | #define DEFINE(sym, val) \ |
| 6 | asm volatile("\n->" #sym " %0 " #val : : "i" (val)) | 7 | asm volatile("\n->" #sym " %0 " #val : : "i" (val)) |
| @@ -16,6 +17,7 @@ | |||
| 16 | void foo(void) | 17 | void foo(void) |
| 17 | { | 18 | { |
| 18 | OFFSET(HOST_TASK_DEBUGREGS, task_struct, thread.arch.debugregs); | 19 | OFFSET(HOST_TASK_DEBUGREGS, task_struct, thread.arch.debugregs); |
| 20 | DEFINE(KERNEL_MADV_REMOVE, MADV_REMOVE); | ||
| 19 | #ifdef CONFIG_MODE_TT | 21 | #ifdef CONFIG_MODE_TT |
| 20 | OFFSET(HOST_TASK_EXTERN_PID, task_struct, thread.mode.tt.extern_pid); | 22 | OFFSET(HOST_TASK_EXTERN_PID, task_struct, thread.mode.tt.extern_pid); |
| 21 | #endif | 23 | #endif |
diff --git a/arch/um/include/sysdep-x86_64/kernel-offsets.h b/arch/um/include/sysdep-x86_64/kernel-offsets.h index 5ce93abd0b54..939cc475757a 100644 --- a/arch/um/include/sysdep-x86_64/kernel-offsets.h +++ b/arch/um/include/sysdep-x86_64/kernel-offsets.h | |||
| @@ -4,6 +4,7 @@ | |||
| 4 | #include <linux/time.h> | 4 | #include <linux/time.h> |
| 5 | #include <linux/elf.h> | 5 | #include <linux/elf.h> |
| 6 | #include <asm/page.h> | 6 | #include <asm/page.h> |
| 7 | #include <asm/mman.h> | ||
| 7 | 8 | ||
| 8 | #define DEFINE(sym, val) \ | 9 | #define DEFINE(sym, val) \ |
| 9 | asm volatile("\n->" #sym " %0 " #val : : "i" (val)) | 10 | asm volatile("\n->" #sym " %0 " #val : : "i" (val)) |
| @@ -18,6 +19,7 @@ | |||
| 18 | 19 | ||
| 19 | void foo(void) | 20 | void foo(void) |
| 20 | { | 21 | { |
| 22 | DEFINE(KERNEL_MADV_REMOVE, MADV_REMOVE); | ||
| 21 | #ifdef CONFIG_MODE_TT | 23 | #ifdef CONFIG_MODE_TT |
| 22 | OFFSET(HOST_TASK_EXTERN_PID, task_struct, thread.mode.tt.extern_pid); | 24 | OFFSET(HOST_TASK_EXTERN_PID, task_struct, thread.mode.tt.extern_pid); |
| 23 | #endif | 25 | #endif |
