aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/system.c
diff options
context:
space:
mode:
authorMarvin Borner2020-05-01 20:50:49 +0200
committerMarvin Borner2020-05-01 20:50:49 +0200
commit21106945c4a28d45334824c02f8b139d1db91c45 (patch)
treef215128167a17fa476ad32350c2b81fc4ebb0395 /src/kernel/system.c
parentf0439a5dbfe2cfed3d629027d4b54b5f77f4e6de (diff)
Added devfs and basic standard devices
Diffstat (limited to 'src/kernel/system.c')
-rw-r--r--src/kernel/system.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/kernel/system.c b/src/kernel/system.c
index 37c81c4..103522f 100644
--- a/src/kernel/system.c
+++ b/src/kernel/system.c
@@ -65,8 +65,8 @@ const char *random_message[10] = { "Uh... Did I do that?",
void _panic(const char *f, const char *msg)
{
cli();
- _log(f, RED "PNC: %s - System halted!" RES, msg);
- printf("[%s] PNC: %s - System halted!\n\n", f, msg);
+ _log(f, RED "PNC: %s - Halting system!" RES, msg);
+ printf("[%s] PNC: %s - Halting system!\n\n", f, msg);
printf("> %s", random_message[get_time() % 10]);
halt_loop();
}
@@ -80,6 +80,7 @@ void _assert(const char *f, int x)
void halt_loop()
{
+ debug("Halted.");
cli();
loop:
hlt();