[][src]Function sunrise_kernel::sync::spin_lock_irq::permanently_disable_interrupts

pub unsafe fn permanently_disable_interrupts()

Permanently disables the interrupts. Forever.

Only used by the panic handlers!

Simply sets INTERRUPT_DISARM.

Safety

This is completely unsafe. It forcefully disables interrupts, which will cause the kernel to deadlock if it ever reaches an hlt or any other kind of sleep. It should only be done when something already went horribly wrong, in order to regain some amount of control to print a panic message.