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 {
magic: usize,
size: usize,
_pad: usize,
next: *mut Header
}

View File

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