forked from M-Labs/artiq
1
0
Fork 0

alloc: fix alignment for riscv32 arch

This commit is contained in:
occheung 2021-09-09 10:20:04 +08:00
parent 2213e7ffac
commit b8ed5a0d91
2 changed files with 2 additions and 1 deletions

View File

@ -13,6 +13,7 @@ const MAGIC_BUSY: usize = 0xFEEDFEED;
struct Header { struct Header {
magic: usize, magic: usize,
size: usize, size: usize,
_pad: usize,
next: *mut Header next: *mut Header
} }

View File

@ -75,7 +75,7 @@ SECTIONS
_fstack = . - 16; _fstack = . - 16;
} > runtime } > runtime
.heap (NOLOAD) : .heap (NOLOAD) : ALIGN(16)
{ {
_fheap = .; _fheap = .;
. = ORIGIN(runtime) + LENGTH(runtime); . = ORIGIN(runtime) + LENGTH(runtime);