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/os-Linux/process.c | |
| parent | 4741c336d27dec3ea68a35659abb8dc82b142388 (diff) | |
| parent | 402a26f0c040077ed6f941eefac5a6971f0d5f40 (diff) | |
Merge branch 'master'
Diffstat (limited to 'arch/um/os-Linux/process.c')
| -rw-r--r-- | arch/um/os-Linux/process.c | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/arch/um/os-Linux/process.c b/arch/um/os-Linux/process.c index 8176b0b52047..3505f44f8a25 100644 --- a/arch/um/os-Linux/process.c +++ b/arch/um/os-Linux/process.c | |||
| @@ -190,7 +190,7 @@ int os_unmap_memory(void *addr, int len) | |||
| 190 | } | 190 | } | 
| 191 | 191 | ||
| 192 | #ifndef MADV_REMOVE | 192 | #ifndef MADV_REMOVE | 
| 193 | #define MADV_REMOVE 0x5 /* remove these pages & resources */ | 193 | #define MADV_REMOVE KERNEL_MADV_REMOVE | 
| 194 | #endif | 194 | #endif | 
| 195 | 195 | ||
| 196 | int os_drop_memory(void *addr, int length) | 196 | int os_drop_memory(void *addr, int length) | 
| @@ -216,7 +216,7 @@ int can_drop_memory(void) | |||
| 216 | } | 216 | } | 
| 217 | 217 | ||
| 218 | addr = mmap64(NULL, UM_KERN_PAGE_SIZE, PROT_READ | PROT_WRITE, | 218 | addr = mmap64(NULL, UM_KERN_PAGE_SIZE, PROT_READ | PROT_WRITE, | 
| 219 | MAP_PRIVATE, fd, 0); | 219 | MAP_SHARED, fd, 0); | 
| 220 | if(addr == MAP_FAILED){ | 220 | if(addr == MAP_FAILED){ | 
| 221 | printk("Mapping test memory file failed, err = %d\n", -errno); | 221 | printk("Mapping test memory file failed, err = %d\n", -errno); | 
| 222 | return 0; | 222 | return 0; | 
| @@ -266,11 +266,11 @@ void init_new_thread_signals(int altstack) | |||
| 266 | 266 | ||
| 267 | int run_kernel_thread(int (*fn)(void *), void *arg, void **jmp_ptr) | 267 | int run_kernel_thread(int (*fn)(void *), void *arg, void **jmp_ptr) | 
| 268 | { | 268 | { | 
| 269 | sigjmp_buf buf; | 269 | jmp_buf buf; | 
| 270 | int n, enable; | 270 | int n, enable; | 
| 271 | 271 | ||
| 272 | *jmp_ptr = &buf; | 272 | *jmp_ptr = &buf; | 
| 273 | n = UML_SIGSETJMP(&buf, enable); | 273 | n = UML_SETJMP(&buf, enable); | 
| 274 | if(n != 0) | 274 | if(n != 0) | 
| 275 | return(n); | 275 | return(n); | 
| 276 | (*fn)(arg); | 276 | (*fn)(arg); | 
