mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-26 03:38:25 +08:00
alloc: fix alignment for riscv32 arch
This commit is contained in:
parent
2213e7ffac
commit
b8ed5a0d91
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user