mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
kernel: main: ignore interrupts in main loop
When the kernel is running its main loop, interrupts are disabled as it is running in supervisor mode. As a result, we can ignore any interrupt enabling/disabling that may need to occur. Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
06a5997a45
commit
eb4ab4ca35
1 changed files with 0 additions and 2 deletions
|
|
@ -153,9 +153,7 @@ pub extern "C" fn kmain() {
|
||||||
}
|
}
|
||||||
|
|
||||||
loop {
|
loop {
|
||||||
arch::irq::disable_all_irqs();
|
|
||||||
pid = next_pid_to_run(pid);
|
pid = next_pid_to_run(pid);
|
||||||
arch::irq::enable_all_irqs();
|
|
||||||
|
|
||||||
match pid {
|
match pid {
|
||||||
Some(pid) => {
|
Some(pid) => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue