[arch][arm] Put main translation table into a section to address alignment issues.

This commit is contained in:
Corey Tabaka
2012-09-29 05:37:49 -07:00
parent 5f2edb8ce8
commit 5abe2e4722
2 changed files with 2 additions and 1 deletions

View File

@@ -39,7 +39,7 @@
static uint32_t *tt = (void *)MMU_TRANSLATION_TABLE_ADDR;
#else
/* the main translation table */
static uint32_t tt[4096] __ALIGNED(16384);
static uint32_t tt[4096] __ALIGNED(16384) __SECTION(".bss.prebss.translation_table");
#endif
#define MMU_FLAG_CACHED 0x1

View File

@@ -78,6 +78,7 @@ SECTIONS
__data_end = .;
/* unintialized data (in same segment as writable data) */
.prebss : SUBALIGN(4) { KEEP(*(.bss.prebss.*)) }
.bss.initial_stack : SUBALIGN(4) { KEEP(*(.bss.initial_stack)) }
.bss : SUBALIGN(4) {
__bss_start = .;