Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ZR233 committed Jan 21, 2025
1 parent fe0ae41 commit 7d30b15
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
{
"name": "KDebug lldb",
"type": "lldb",
"request": "custom",
"request": "launch",
"initCommands": [
"platform select remote-gdb-server"
],
Expand Down
4 changes: 4 additions & 0 deletions crates/sparreal-rt/src/arch/aarch64/trap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ pub fn handle_page_fault(vaddr: VirtAddr, reason: PageFaultReason) {
panic!("Invalid addr fault @{vaddr:?}, reason: {reason:?}");
}

#[inline(always)]
extern "C" fn handle_irq() {
super::context::store_pc_is_elr();
unsafe {
Expand All @@ -105,6 +106,7 @@ extern "C" fn handle_irq() {
unsafe { asm!("eret") };
}

#[inline(always)]
extern "C" fn handle_fiq() {
super::context::store_pc_is_elr();
unsafe {
Expand All @@ -119,6 +121,7 @@ extern "C" fn handle_fiq() {
unsafe { asm!("eret") };
}

#[inline(always)]
extern "C" fn handle_sync() {
super::context::store_pc_is_elr();
unsafe {
Expand All @@ -133,6 +136,7 @@ extern "C" fn handle_sync() {
unsafe { asm!("eret") };
}

#[inline(always)]
extern "C" fn handle_serror() {
super::context::store_pc_is_elr();
unsafe {
Expand Down

0 comments on commit 7d30b15

Please sign in to comment.