diff cos/kernel/kernel.c @ 35:bcb3b68c8147

Added bss end address and load end address to multiboot header
author windel
date Mon, 16 Jan 2012 17:38:00 +0100
parents 8012221dd740
children 91f91ff07ea8
line wrap: on
line diff
--- a/cos/kernel/kernel.c	Mon Jan 16 13:46:06 2012 +0100
+++ b/cos/kernel/kernel.c	Mon Jan 16 17:38:00 2012 +0100
@@ -14,6 +14,9 @@
    kfree(a);
 }
 
+uint64_t testvar = 1234; // Ends up in data section
+uint64_t testvar2 = 0; // Ends up in bss section
+
 multiboot_info_t *multiboot_info = 0; // Set by startup code.
 
 /* This routine initializes the kernel.
@@ -27,6 +30,10 @@
    keyboard_init();
    timer_init();
 
+   testvar++;
+   testvar2++;
+   printf("Test variable = %d, testvar2 = %d\n", testvar, testvar2);
+
    /* Retrieve memory information from multiboot header */
    uint64_t available_memory = 0;
    if ((multiboot_info->flags & (1<<6)) == (1<<6))