Commit 7cf6ac2a authored by Haavard Skinnemoen's avatar Haavard Skinnemoen

[AVR32] Kill a few hardcoded constants in vmlinux.lds

Use PAGE_SIZE, THREAD_SIZE and L1_CACHE_BYTES instead of harcoded
constants in places where that's what we really mean.
Signed-off-by: default avatarHaavard Skinnemoen <hskinnemoen@atmel.com>
parent 4e59629b
...@@ -9,6 +9,8 @@ ...@@ -9,6 +9,8 @@
*/ */
#define LOAD_OFFSET 0x00000000 #define LOAD_OFFSET 0x00000000
#include <asm-generic/vmlinux.lds.h> #include <asm-generic/vmlinux.lds.h>
#include <asm/cache.h>
#include <asm/thread_info.h>
OUTPUT_FORMAT("elf32-avr32", "elf32-avr32", "elf32-avr32") OUTPUT_FORMAT("elf32-avr32", "elf32-avr32", "elf32-avr32")
OUTPUT_ARCH(avr32) OUTPUT_ARCH(avr32)
...@@ -58,7 +60,7 @@ SECTIONS ...@@ -58,7 +60,7 @@ SECTIONS
*(.init.ramfs) *(.init.ramfs)
__initramfs_end = .; __initramfs_end = .;
#endif #endif
. = ALIGN(4096); . = ALIGN(PAGE_SIZE);
__init_end = .; __init_end = .;
} }
...@@ -96,7 +98,7 @@ SECTIONS ...@@ -96,7 +98,7 @@ SECTIONS
RODATA RODATA
. = ALIGN(8192); . = ALIGN(THREAD_SIZE);
.data : AT(ADDR(.data) - LOAD_OFFSET) { .data : AT(ADDR(.data) - LOAD_OFFSET) {
_data = .; _data = .;
...@@ -107,7 +109,7 @@ SECTIONS ...@@ -107,7 +109,7 @@ SECTIONS
*(.data.init_task) *(.data.init_task)
/* Then, the cacheline aligned data */ /* Then, the cacheline aligned data */
. = ALIGN(32); . = ALIGN(L1_CACHE_BYTES);
*(.data.cacheline_aligned) *(.data.cacheline_aligned)
/* And the rest... */ /* And the rest... */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment