From df57d3f04f3d4dc6840d57262f134d718934f3d5 Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Sun, 24 May 2015 09:54:43 +0200 Subject: [PATCH] start to dump kernel position as position 0 (and not 1) --- hermit/libkern/stdio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hermit/libkern/stdio.c b/hermit/libkern/stdio.c index 2626b68c0..4983ce9a3 100644 --- a/hermit/libkern/stdio.c +++ b/hermit/libkern/stdio.c @@ -46,7 +46,7 @@ static uint32_t early_print = VGA_EARLY_PRINT; static uint32_t early_print = NO_EARLY_PRINT; #endif static spinlock_irqsave_t olock = SPINLOCK_IRQSAVE_INIT; -static atomic_int32_t kmsg_counter = ATOMIC_INIT(0); +static atomic_int32_t kmsg_counter = ATOMIC_INIT(-1); static unsigned char kmessages[KMSG_SIZE] __attribute__ ((section(".kmsg"))) = {[0 ... KMSG_SIZE-1] = 0x00}; int koutput_init(void)