Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasKruckenberg committed Feb 21, 2025
1 parent 97fc887 commit 2783cf6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions kernel/src/arch/riscv64/trap_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ unsafe extern "C" fn default_trap_entry() {
// FIXME this is a workaround for bug in rustc/llvm
// https://github.com/rust-lang/rust/issues/80608#issuecomment-1094267279
".attribute arch, \"rv64gc\"",

".align 2",
"csrrw sp, sscratch, sp", // sp points to the TrapFrame

"add sp, sp, -0x210",

// save gp regs
Expand Down
2 changes: 1 addition & 1 deletion loader/src/arch/riscv64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ unsafe extern "C" fn _start() -> ! {
// FIXME this is a workaround for bug in rustc/llvm
// https://github.com/rust-lang/rust/issues/80608#issuecomment-1094267279
".attribute arch, \"rv64gc\"",

// read boot time stamp as early as possible
"rdtime a2",

Expand Down

0 comments on commit 2783cf6

Please sign in to comment.