Skip to content

Commit db314d1

Browse files
committed
minor changes
1 parent d597a71 commit db314d1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

riscv-rt/src/asm.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,13 @@ riscv_rt_macros::loop_global_asm!(" li x{}, 0", 1, 10);
7979
// a0..a2 (x10..x12) skipped
8080
riscv_rt_macros::loop_global_asm!(" li x{}, 0", 13, 32);
8181

82-
// INITIALIZE GLOBAL POINTER
82+
// INITIALIZE GLOBAL POINTER, STACK POINTER, AND FRAME POINTER
8383
cfg_global_asm!(
8484
".option push
8585
.option norelax
8686
la gp, __global_pointer$
8787
.option pop",
8888
);
89-
90-
// INITIALIZE STACK POINTER AND FRAME POINTER
9189
#[cfg(not(feature = "single-hart"))]
9290
cfg_global_asm!(
9391
#[cfg(feature = "s-mode")]

0 commit comments

Comments
 (0)