diff options
| author | Geert Uytterhoeven <geert@linux-m68k.org> | 2007-08-22 17:01:32 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-08-22 22:52:45 -0400 |
| commit | 42b359238ebd359ed443fd80023e58e47be2224a (patch) | |
| tree | 464fc384e425d3d4a5236d122fcd09f47049c512 | |
| parent | 0d5e74fc7f44b1cdcd793496877c67a2a7a32a1e (diff) | |
m68k: Use _AC() instead of #ifdef __ASSEMBLY__
m68k: Use _AC() instead of #ifdef __ASSEMBLY__ hackery when needed, remove
hackery when unused.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
| -rw-r--r-- | include/asm-m68k/page.h | 8 | ||||
| -rw-r--r-- | include/asm-m68k/processor.h | 4 |
2 files changed, 3 insertions, 9 deletions
diff --git a/include/asm-m68k/page.h b/include/asm-m68k/page.h index fff1f455bdad..1431ea0b59e0 100644 --- a/include/asm-m68k/page.h +++ b/include/asm-m68k/page.h | |||
| @@ -4,17 +4,15 @@ | |||
| 4 | 4 | ||
| 5 | #ifdef __KERNEL__ | 5 | #ifdef __KERNEL__ |
| 6 | 6 | ||
| 7 | #include <linux/const.h> | ||
| 8 | |||
| 7 | /* PAGE_SHIFT determines the page size */ | 9 | /* PAGE_SHIFT determines the page size */ |
| 8 | #ifndef CONFIG_SUN3 | 10 | #ifndef CONFIG_SUN3 |
| 9 | #define PAGE_SHIFT (12) | 11 | #define PAGE_SHIFT (12) |
| 10 | #else | 12 | #else |
| 11 | #define PAGE_SHIFT (13) | 13 | #define PAGE_SHIFT (13) |
| 12 | #endif | 14 | #endif |
| 13 | #ifdef __ASSEMBLY__ | 15 | #define PAGE_SIZE (_AC(1, UL) << PAGE_SHIFT) |
| 14 | #define PAGE_SIZE (1 << PAGE_SHIFT) | ||
| 15 | #else | ||
| 16 | #define PAGE_SIZE (1UL << PAGE_SHIFT) | ||
| 17 | #endif | ||
| 18 | #define PAGE_MASK (~(PAGE_SIZE-1)) | 16 | #define PAGE_MASK (~(PAGE_SIZE-1)) |
| 19 | 17 | ||
| 20 | #include <asm/setup.h> | 18 | #include <asm/setup.h> |
diff --git a/include/asm-m68k/processor.h b/include/asm-m68k/processor.h index 8455f778b601..4453ec379c5d 100644 --- a/include/asm-m68k/processor.h +++ b/include/asm-m68k/processor.h | |||
| @@ -38,12 +38,8 @@ static inline void wrusp(unsigned long usp) | |||
| 38 | #ifndef CONFIG_SUN3 | 38 | #ifndef CONFIG_SUN3 |
| 39 | #define TASK_SIZE (0xF0000000UL) | 39 | #define TASK_SIZE (0xF0000000UL) |
| 40 | #else | 40 | #else |
| 41 | #ifdef __ASSEMBLY__ | ||
| 42 | #define TASK_SIZE (0x0E000000) | ||
| 43 | #else | ||
| 44 | #define TASK_SIZE (0x0E000000UL) | 41 | #define TASK_SIZE (0x0E000000UL) |
| 45 | #endif | 42 | #endif |
| 46 | #endif | ||
| 47 | 43 | ||
| 48 | /* This decides where the kernel will search for a free chunk of vm | 44 | /* This decides where the kernel will search for a free chunk of vm |
| 49 | * space during mmap's. | 45 | * space during mmap's. |
