浏览代码

minor changes

Román Cárdenas 1 年之前
父节点
当前提交
db314d1c48
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      riscv-rt/src/asm.rs

+ 1 - 3
riscv-rt/src/asm.rs

@@ -79,15 +79,13 @@ riscv_rt_macros::loop_global_asm!("    li x{}, 0", 1, 10);
 // a0..a2 (x10..x12) skipped
 riscv_rt_macros::loop_global_asm!("    li x{}, 0", 13, 32);
 
-// INITIALIZE GLOBAL POINTER
+// INITIALIZE GLOBAL POINTER, STACK POINTER, AND FRAME POINTER
 cfg_global_asm!(
     ".option push
     .option norelax
     la gp, __global_pointer$
     .option pop",
 );
-
-// INITIALIZE STACK POINTER AND FRAME POINTER
 #[cfg(not(feature = "single-hart"))]
 cfg_global_asm!(
     #[cfg(feature = "s-mode")]