forked from M-Labs/zynq-rs
libcortex_a9: remove mmu::l1_table alignment through linker script
no longer needed, #[repr(16384)] works now
This commit is contained in:
parent
83ff37e10e
commit
008a995429
|
@ -39,7 +39,6 @@ SECTIONS
|
||||||
.bss (NOLOAD) : ALIGN(4)
|
.bss (NOLOAD) : ALIGN(4)
|
||||||
{
|
{
|
||||||
__bss_start = .;
|
__bss_start = .;
|
||||||
KEEP(*(.bss.l1_table));
|
|
||||||
*(.bss .bss.*);
|
*(.bss .bss.*);
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
__bss_end = .;
|
__bss_end = .;
|
||||||
|
|
|
@ -94,14 +94,11 @@ impl L1Entry {
|
||||||
}
|
}
|
||||||
|
|
||||||
const L1_TABLE_SIZE: usize = 4096;
|
const L1_TABLE_SIZE: usize = 4096;
|
||||||
#[doc(hidden)]
|
static mut l1_table: L1Table = L1Table {
|
||||||
#[link_section = ".bss.l1_table"]
|
|
||||||
#[no_mangle]
|
|
||||||
pub static mut l1_table: L1Table = L1Table {
|
|
||||||
table: [L1Entry(0); L1_TABLE_SIZE]
|
table: [L1Entry(0); L1_TABLE_SIZE]
|
||||||
};
|
};
|
||||||
|
|
||||||
#[repr(align(16384))]
|
#[repr(C, align(16384))]
|
||||||
pub struct L1Table {
|
pub struct L1Table {
|
||||||
table: [L1Entry; L1_TABLE_SIZE]
|
table: [L1Entry; L1_TABLE_SIZE]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue