git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
4-virtual_memory.md (#24)
[lunaix-os.git]
/
lunaix-os
/
kernel
/
spike.c
diff --git
a/lunaix-os/kernel/spike.c
b/lunaix-os/kernel/spike.c
index cb1bc1f2777dc485bf4f46ee680c5dc45d2e4061..ad751e137a32bd1ed6bb964baeb26baaa831a7e5 100644
(file)
--- a/
lunaix-os/kernel/spike.c
+++ b/
lunaix-os/kernel/spike.c
@@
-1,6
+1,6
@@
-#include <klibc/st
dio
.h>
+#include <klibc/st
rfmt
.h>
#include <lunaix/spike.h>
#include <lunaix/spike.h>
-#include <
sys/interrupts
.h>
+#include <
lunaix/pcontext
.h>
static char buffer[1024];
static char buffer[1024];
@@
-30,7
+30,7
@@
panickf(const char* fmt, ...)
{
va_list args;
va_start(args, fmt);
{
va_list args;
va_start(args, fmt);
-
__ksprintf_internal
(buffer, fmt, 1024, args);
+
ksnprintfv
(buffer, fmt, 1024, args);
va_end(args);
asm("int %0" ::"i"(LUNAIX_SYS_PANIC), "D"(buffer));
va_end(args);
asm("int %0" ::"i"(LUNAIX_SYS_PANIC), "D"(buffer));