aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWojtek Kosior <kwojtus@protonmail.com>2020-01-18 16:34:14 +0100
committerWojtek Kosior <kwojtus@protonmail.com>2020-01-18 16:34:14 +0100
commitb9622c2d54b4943e40ced0a0af086f16e9b4f785 (patch)
tree772d0a4533fca373191cc4af44aaad5066a2544f
parent26875530836aec74b9bce8d5492c42528cdb34c3 (diff)
downloadrpi-MMU-example-b9622c2d54b4943e40ced0a0af086f16e9b4f785.tar.gz
rpi-MMU-example-b9622c2d54b4943e40ced0a0af086f16e9b4f785.zip
mark an overlooking in IRQ handler
-rw-r--r--src/arm/PL1/kernel/interrupts.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/arm/PL1/kernel/interrupts.c b/src/arm/PL1/kernel/interrupts.c
index 0832cad..6f61615 100644
--- a/src/arm/PL1/kernel/interrupts.c
+++ b/src/arm/PL1/kernel/interrupts.c
@@ -74,6 +74,7 @@ void irq_handler(uint32_t regs[14])
if (read_SPSR().fields.PSR_MODE_4_0 != MODE_USER)
{
+ // TODO set supervisor mode's stack pointer
write_SPSR(PL1_PSR);
asm volatile("mov lr, %0\n\r"
"subs pc, lr, #0" ::