Fix: lab3 bug
This commit is contained in:
@@ -46,11 +46,11 @@
|
|||||||
ldp x28, x29, [sp, 16 * 14]
|
ldp x28, x29, [sp, 16 * 14]
|
||||||
ldp x30, lr, [sp, 16 * 15]
|
ldp x30, lr, [sp, 16 * 15]
|
||||||
|
|
||||||
mrs x0, spsr_el1
|
|
||||||
mrs x1, elr_el1
|
|
||||||
mrs x2, esr_el1
|
|
||||||
ldp x0, x1, [sp, 16 * 16]
|
ldp x0, x1, [sp, 16 * 16]
|
||||||
ldr x2, [sp, 16 * 17]
|
ldr x2, [sp, 16 * 17]
|
||||||
|
msr spsr_el1, x0
|
||||||
|
msr elr_el1, x1
|
||||||
|
msr esr_el1, x2
|
||||||
add sp, sp, 36 * 8
|
add sp, sp, 36 * 8
|
||||||
.endm
|
.endm
|
||||||
|
|
||||||
|
|||||||
@@ -105,7 +105,8 @@ void irq_handler(void)
|
|||||||
void wfe(void)
|
void wfe(void)
|
||||||
{
|
{
|
||||||
if (!global_interrupt_pool) {
|
if (!global_interrupt_pool) {
|
||||||
asm volatile("wfe");
|
// asm volatile("wfe");
|
||||||
|
asm volatile("nop");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user