Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ceno_rt/ceno_link.x
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

/* The address of this variable is the start of the stack (growing downwards). */
_stack_start = ORIGIN(REGION_STACK) + LENGTH(REGION_STACK);
_hints_start = ORIGIN(REGION_HINTS);
_hints_length = LENGTH(REGION_HINTS);
Expand Down
6 changes: 1 addition & 5 deletions ceno_rt/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ pub fn halt(exit_code: u32) -> ! {
);
}

// Look in the linker scripts `ceno_link.x` and `memory.x` for symbols like `_stack_start`.
#[cfg(target_arch = "riscv32")]
global_asm!(
"
Expand Down Expand Up @@ -98,8 +99,3 @@ _start:
ecall
",
);

extern "C" {
// The address of this variable is the start of the stack (growing downwards).
static _stack_start: u8;
}