Logging without locking before the MMU is initialized.
Some architectures require MMU to be initialized before atomic
operations are functional.
Change-Id: Ibebae7a811f5710a387d058bf78c046057e2df45
diff --git a/src/main.c b/src/main.c
index 734caf5..7c02e6d 100644
--- a/src/main.c
+++ b/src/main.c
@@ -44,13 +44,13 @@
/* TODO: Block all CPUs. */
- dlog("Panic: ");
+ dlog_nosync("Panic: ");
va_start(args, fmt);
- vdlog(fmt, args);
+ vdlog_nosync(fmt, args);
va_end(args);
- dlog("\n");
+ dlog_nosync("\n");
for (;;) {
}
@@ -68,7 +68,7 @@
void *initrd;
size_t i;
- dlog("Initialising hafnium\n");
+ dlog_nosync("Initialising hafnium\n");
cpu_module_init();
halloc_init((size_t)ptable_buf, sizeof(ptable_buf));