mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
loader: disable interrupts in the kernel
This disables interrupts when the kernel is running. Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
8646662804
commit
50e72bf837
6 changed files with 3 additions and 2 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -30,8 +30,9 @@ start_kernel:
|
|||
csrw mideleg, t0
|
||||
csrw medeleg, t0
|
||||
|
||||
// Return to Supervisor mode (and enable interrupts)
|
||||
li t0, (1 << 11) | (1 << 5)
|
||||
// Return to Supervisor mode (1 << 11) when we call `reti`.
|
||||
// Disable interrupts (0 << 5)
|
||||
li t0, (1 << 11) | (0 << 5)
|
||||
// If arg6 is "true", also set mstatus.SUM to allow the kernel
|
||||
// to access userspace memory.
|
||||
andi a6, a6, 1
|
||||
|
|
|
|||
Loading…
Reference in a new issue