diff options
| -rw-r--r-- | arch/arm/include/asm/page.h | 2 | ||||
| -rw-r--r-- | arch/arm/kernel/vmlinux.lds.S | 15 |
2 files changed, 9 insertions, 8 deletions
diff --git a/arch/arm/include/asm/page.h b/arch/arm/include/asm/page.h index be962c1349c4..9c746af1bf6e 100644 --- a/arch/arm/include/asm/page.h +++ b/arch/arm/include/asm/page.h | |||
| @@ -12,7 +12,7 @@ | |||
| 12 | 12 | ||
| 13 | /* PAGE_SHIFT determines the page size */ | 13 | /* PAGE_SHIFT determines the page size */ |
| 14 | #define PAGE_SHIFT 12 | 14 | #define PAGE_SHIFT 12 |
| 15 | #define PAGE_SIZE (1UL << PAGE_SHIFT) | 15 | #define PAGE_SIZE (_AC(1,UL) << PAGE_SHIFT) |
| 16 | #define PAGE_MASK (~(PAGE_SIZE-1)) | 16 | #define PAGE_MASK (~(PAGE_SIZE-1)) |
| 17 | 17 | ||
| 18 | #ifndef __ASSEMBLY__ | 18 | #ifndef __ASSEMBLY__ |
diff --git a/arch/arm/kernel/vmlinux.lds.S b/arch/arm/kernel/vmlinux.lds.S index 4340bf3d2c84..69371028a202 100644 --- a/arch/arm/kernel/vmlinux.lds.S +++ b/arch/arm/kernel/vmlinux.lds.S | |||
| @@ -6,6 +6,7 @@ | |||
| 6 | #include <asm-generic/vmlinux.lds.h> | 6 | #include <asm-generic/vmlinux.lds.h> |
| 7 | #include <asm/thread_info.h> | 7 | #include <asm/thread_info.h> |
| 8 | #include <asm/memory.h> | 8 | #include <asm/memory.h> |
| 9 | #include <asm/page.h> | ||
| 9 | 10 | ||
| 10 | OUTPUT_ARCH(arm) | 11 | OUTPUT_ARCH(arm) |
| 11 | ENTRY(stext) | 12 | ENTRY(stext) |
| @@ -63,7 +64,7 @@ SECTIONS | |||
| 63 | usr/built-in.o(.init.ramfs) | 64 | usr/built-in.o(.init.ramfs) |
| 64 | __initramfs_end = .; | 65 | __initramfs_end = .; |
| 65 | #endif | 66 | #endif |
| 66 | . = ALIGN(4096); | 67 | . = ALIGN(PAGE_SIZE); |
| 67 | __per_cpu_load = .; | 68 | __per_cpu_load = .; |
| 68 | __per_cpu_start = .; | 69 | __per_cpu_start = .; |
| 69 | *(.data.percpu.page_aligned) | 70 | *(.data.percpu.page_aligned) |
| @@ -73,7 +74,7 @@ SECTIONS | |||
| 73 | #ifndef CONFIG_XIP_KERNEL | 74 | #ifndef CONFIG_XIP_KERNEL |
| 74 | __init_begin = _stext; | 75 | __init_begin = _stext; |
| 75 | INIT_DATA | 76 | INIT_DATA |
| 76 | . = ALIGN(4096); | 77 | . = ALIGN(PAGE_SIZE); |
| 77 | __init_end = .; | 78 | __init_end = .; |
| 78 | #endif | 79 | #endif |
| 79 | } | 80 | } |
| @@ -118,7 +119,7 @@ SECTIONS | |||
| 118 | *(.got) /* Global offset table */ | 119 | *(.got) /* Global offset table */ |
| 119 | } | 120 | } |
| 120 | 121 | ||
| 121 | RODATA | 122 | RO_DATA(PAGE_SIZE) |
| 122 | 123 | ||
| 123 | _etext = .; /* End of text and rodata section */ | 124 | _etext = .; /* End of text and rodata section */ |
| 124 | 125 | ||
| @@ -158,17 +159,17 @@ SECTIONS | |||
| 158 | *(.data.init_task) | 159 | *(.data.init_task) |
| 159 | 160 | ||
| 160 | #ifdef CONFIG_XIP_KERNEL | 161 | #ifdef CONFIG_XIP_KERNEL |
| 161 | . = ALIGN(4096); | 162 | . = ALIGN(PAGE_SIZE); |
| 162 | __init_begin = .; | 163 | __init_begin = .; |
| 163 | INIT_DATA | 164 | INIT_DATA |
| 164 | . = ALIGN(4096); | 165 | . = ALIGN(PAGE_SIZE); |
| 165 | __init_end = .; | 166 | __init_end = .; |
| 166 | #endif | 167 | #endif |
| 167 | 168 | ||
| 168 | . = ALIGN(4096); | 169 | . = ALIGN(PAGE_SIZE); |
| 169 | __nosave_begin = .; | 170 | __nosave_begin = .; |
| 170 | *(.data.nosave) | 171 | *(.data.nosave) |
| 171 | . = ALIGN(4096); | 172 | . = ALIGN(PAGE_SIZE); |
| 172 | __nosave_end = .; | 173 | __nosave_end = .; |
| 173 | 174 | ||
| 174 | /* | 175 | /* |
