diff options
| author | Tony Luck <tony.luck@intel.com> | 2005-05-17 18:53:14 -0400 |
|---|---|---|
| committer | Tony Luck <tony.luck@intel.com> | 2005-05-17 18:53:14 -0400 |
| commit | 325a479c4c110db278ef3361460a48c4093252cc (patch) | |
| tree | bcfbf4d0647d9442045639a5c19da59d55190e81 /mm/vmalloc.c | |
| parent | ebcc80c1b6629a445f7471cc1ddb48faf8a84e70 (diff) | |
| parent | 7f9eaedf894dbaa08c157832e9a6c9c03ffed1ed (diff) | |
Merge with temp tree to get David's gdb inferior calls patch
Diffstat (limited to 'mm/vmalloc.c')
| -rw-r--r-- | mm/vmalloc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mm/vmalloc.c b/mm/vmalloc.c index c6182f6f1305..2bd83e5c2bbf 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c | |||
| @@ -475,6 +475,10 @@ void *vmalloc(unsigned long size) | |||
| 475 | 475 | ||
| 476 | EXPORT_SYMBOL(vmalloc); | 476 | EXPORT_SYMBOL(vmalloc); |
| 477 | 477 | ||
| 478 | #ifndef PAGE_KERNEL_EXEC | ||
| 479 | # define PAGE_KERNEL_EXEC PAGE_KERNEL | ||
| 480 | #endif | ||
| 481 | |||
| 478 | /** | 482 | /** |
| 479 | * vmalloc_exec - allocate virtually contiguous, executable memory | 483 | * vmalloc_exec - allocate virtually contiguous, executable memory |
| 480 | * | 484 | * |
| @@ -488,10 +492,6 @@ EXPORT_SYMBOL(vmalloc); | |||
| 488 | * use __vmalloc() instead. | 492 | * use __vmalloc() instead. |
| 489 | */ | 493 | */ |
| 490 | 494 | ||
| 491 | #ifndef PAGE_KERNEL_EXEC | ||
| 492 | # define PAGE_KERNEL_EXEC PAGE_KERNEL | ||
| 493 | #endif | ||
| 494 | |||
| 495 | void *vmalloc_exec(unsigned long size) | 495 | void *vmalloc_exec(unsigned long size) |
| 496 | { | 496 | { |
| 497 | return __vmalloc(size, GFP_KERNEL | __GFP_HIGHMEM, PAGE_KERNEL_EXEC); | 497 | return __vmalloc(size, GFP_KERNEL | __GFP_HIGHMEM, PAGE_KERNEL_EXEC); |
