voron

experimental ARM OS
git clone git://git.2f30.org/voron
Log | Files | Refs | README | LICENSE

commit 962ca3a68a47adf63e02aceb4ee64867714173ce
parent 3218ef87caba1d584eea361c9267c0f1b2ace9e4
Author: sin <sin@2f30.org>
Date:   Wed, 17 Jul 2013 16:22:21 +0100

Disable interrupts in panic()

Diffstat:
Mkernel/panic.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/kernel/panic.c b/kernel/panic.c @@ -1,11 +1,12 @@ #include <kernel.h> +#include <irq.h> void panic(const char *fmt, ...) { va_list ap; - /* TODO: Shut down interrupts */ + irq_disable(); kprintf("~~~ kernel panic ~~~\n"); va_start(ap, fmt); kvprintf(fmt, ap);