diff options
Diffstat (limited to 'arch/um/include/sysdep-i386/stub.h')
| -rw-r--r-- | arch/um/include/sysdep-i386/stub.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/um/include/sysdep-i386/stub.h b/arch/um/include/sysdep-i386/stub.h index 4fffae75ba53..8c097b87fca7 100644 --- a/arch/um/include/sysdep-i386/stub.h +++ b/arch/um/include/sysdep-i386/stub.h | |||
| @@ -9,7 +9,7 @@ | |||
| 9 | #include <sys/mman.h> | 9 | #include <sys/mman.h> |
| 10 | #include <asm/ptrace.h> | 10 | #include <asm/ptrace.h> |
| 11 | #include <asm/unistd.h> | 11 | #include <asm/unistd.h> |
| 12 | #include <asm/page.h> | 12 | #include "as-layout.h" |
| 13 | #include "stub-data.h" | 13 | #include "stub-data.h" |
| 14 | #include "kern_constants.h" | 14 | #include "kern_constants.h" |
| 15 | #include "uml-config.h" | 15 | #include "uml-config.h" |
| @@ -19,7 +19,7 @@ extern void stub_clone_handler(void); | |||
| 19 | 19 | ||
| 20 | #define STUB_SYSCALL_RET EAX | 20 | #define STUB_SYSCALL_RET EAX |
| 21 | #define STUB_MMAP_NR __NR_mmap2 | 21 | #define STUB_MMAP_NR __NR_mmap2 |
| 22 | #define MMAP_OFFSET(o) ((o) >> PAGE_SHIFT) | 22 | #define MMAP_OFFSET(o) ((o) >> UM_KERN_PAGE_SHIFT) |
| 23 | 23 | ||
| 24 | static inline long stub_syscall0(long syscall) | 24 | static inline long stub_syscall0(long syscall) |
| 25 | { | 25 | { |
| @@ -90,12 +90,12 @@ static inline void remap_stack(int fd, unsigned long offset) | |||
| 90 | { | 90 | { |
| 91 | __asm__ volatile ("movl %%eax,%%ebp ; movl %0,%%eax ; int $0x80 ;" | 91 | __asm__ volatile ("movl %%eax,%%ebp ; movl %0,%%eax ; int $0x80 ;" |
| 92 | "movl %7, %%ebx ; movl %%eax, (%%ebx)" | 92 | "movl %7, %%ebx ; movl %%eax, (%%ebx)" |
| 93 | : : "g" (STUB_MMAP_NR), "b" (UML_CONFIG_STUB_DATA), | 93 | : : "g" (STUB_MMAP_NR), "b" (STUB_DATA), |
| 94 | "c" (UM_KERN_PAGE_SIZE), | 94 | "c" (UM_KERN_PAGE_SIZE), |
| 95 | "d" (PROT_READ | PROT_WRITE), | 95 | "d" (PROT_READ | PROT_WRITE), |
| 96 | "S" (MAP_FIXED | MAP_SHARED), "D" (fd), | 96 | "S" (MAP_FIXED | MAP_SHARED), "D" (fd), |
| 97 | "a" (offset), | 97 | "a" (offset), |
| 98 | "i" (&((struct stub_data *) UML_CONFIG_STUB_DATA)->err) | 98 | "i" (&((struct stub_data *) STUB_DATA)->err) |
| 99 | : "memory"); | 99 | : "memory"); |
| 100 | } | 100 | } |
| 101 | 101 | ||
