diff options
Diffstat (limited to 'include/asm-um')
-rw-r--r-- | include/asm-um/fixmap.h | 3 | ||||
-rw-r--r-- | include/asm-um/processor-generic.h | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/include/asm-um/fixmap.h b/include/asm-um/fixmap.h index 89a87c18b927..9d2be52b8655 100644 --- a/include/asm-um/fixmap.h +++ b/include/asm-um/fixmap.h | |||
@@ -1,6 +1,7 @@ | |||
1 | #ifndef __UM_FIXMAP_H | 1 | #ifndef __UM_FIXMAP_H |
2 | #define __UM_FIXMAP_H | 2 | #define __UM_FIXMAP_H |
3 | 3 | ||
4 | #include <asm/processor.h> | ||
4 | #include <asm/system.h> | 5 | #include <asm/system.h> |
5 | #include <asm/kmap_types.h> | 6 | #include <asm/kmap_types.h> |
6 | #include <asm/archparam.h> | 7 | #include <asm/archparam.h> |
@@ -57,7 +58,7 @@ extern void __set_fixmap (enum fixed_addresses idx, | |||
57 | * at the top of mem.. | 58 | * at the top of mem.. |
58 | */ | 59 | */ |
59 | 60 | ||
60 | #define FIXADDR_TOP (CONFIG_TOP_ADDR - 2 * PAGE_SIZE) | 61 | #define FIXADDR_TOP (TASK_SIZE - 2 * PAGE_SIZE) |
61 | #define FIXADDR_SIZE (__end_of_fixed_addresses << PAGE_SHIFT) | 62 | #define FIXADDR_SIZE (__end_of_fixed_addresses << PAGE_SHIFT) |
62 | #define FIXADDR_START (FIXADDR_TOP - FIXADDR_SIZE) | 63 | #define FIXADDR_START (FIXADDR_TOP - FIXADDR_SIZE) |
63 | 64 | ||
diff --git a/include/asm-um/processor-generic.h b/include/asm-um/processor-generic.h index 7a1624cdaf7e..bed668824b5f 100644 --- a/include/asm-um/processor-generic.h +++ b/include/asm-um/processor-generic.h | |||
@@ -11,7 +11,6 @@ struct pt_regs; | |||
11 | struct task_struct; | 11 | struct task_struct; |
12 | 12 | ||
13 | #include "asm/ptrace.h" | 13 | #include "asm/ptrace.h" |
14 | #include "asm/pgtable.h" | ||
15 | #include "registers.h" | 14 | #include "registers.h" |
16 | #include "sysdep/archsetjmp.h" | 15 | #include "sysdep/archsetjmp.h" |
17 | 16 | ||
@@ -92,7 +91,9 @@ static inline void mm_copy_segments(struct mm_struct *from_mm, | |||
92 | /* | 91 | /* |
93 | * User space process size: 3GB (default). | 92 | * User space process size: 3GB (default). |
94 | */ | 93 | */ |
95 | #define TASK_SIZE (CONFIG_TOP_ADDR & PGDIR_MASK) | 94 | extern unsigned long task_size; |
95 | |||
96 | #define TASK_SIZE (task_size) | ||
96 | 97 | ||
97 | #undef STACK_TOP | 98 | #undef STACK_TOP |
98 | #undef STACK_TOP_MAX | 99 | #undef STACK_TOP_MAX |