Skip to content

Commit 993c7ae

Browse files
committed
add ci and rename SAVE_REGS_SVC
1 parent a081035 commit 993c7ae

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/check.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
- x86_64-unknown-none
2020
- riscv64gc-unknown-none-elf
2121
- aarch64-unknown-none-softfloat
22+
- armv7a-none-eabi
2223
- loongarch64-unknown-none-softfloat
2324

2425
steps:

src/arm/trap.S

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
.equ TRAPFRAME_CPSR, 64
2828

2929
/*
30-
* SAVE_REGS_COMMON: Save registers to the SVC mode stack
30+
* SAVE_REGS_SVC: Save registers to the SVC mode stack
3131
*
3232
* On entry:
3333
* - We are in SVC mode (switched from exception mode)
@@ -37,7 +37,7 @@
3737
*
3838
* Uses the SVC stack for the trap frame.
3939
*/
40-
.macro SAVE_REGS_COMMON
40+
.macro SAVE_REGS_SVC
4141
// Allocate trap frame on SVC stack
4242
sub sp, sp, #TRAPFRAME_SIZE
4343

@@ -160,7 +160,7 @@ HANDLE_EXCEPTION _handle_undef, 4, invalid_exception, 1
160160
_handle_svc:
161161
// Already in SVC mode, just save context
162162

163-
SAVE_REGS_COMMON
163+
SAVE_REGS_SVC
164164

165165
// Call sync exception handler
166166
mov r0, sp

0 commit comments

Comments
 (0)