summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c20
1 files changed, 15 insertions, 5 deletions
diff --git a/src/main.c b/src/main.c
index 382abe7..9bc98ae 100644
--- a/src/main.c
+++ b/src/main.c
@@ -19,7 +19,9 @@ const char *pope =
"loosing\", naming him as the \"rock\" upon which the church would be built. \n"
"Since 1929, the pope has official residence in the Apostolic Palace in the \n"
"Vatican City, a city-state enclaved within Rome, Italy.[6] The current pope is \n"
-"Francis, who was elected on 13 March 2013, succeeding Benedict XVI.[7] \n"
+"Francis, who was elected on 13 March 2013, succeeding Benedict XVI.[7] \n";
+
+/*
"While his office is called the papacy, the jurisdiction of the episcopal see is\n"
"called the Holy See.[8] It is the Holy See that is the sovereign entity by \n"
"international law headquartered in the distinctively independent Vatican City \n"
@@ -28,15 +30,12 @@ const char *pope =
"recognized by its adherence at various levels to international organization and\n"
"by means of its diplomatic relations and political accords with many \n"
"independent states.\n";
+*/
void kernel_main(multiboot_info_t *mb) {
vsetcolor(vga_color(vga_black, vga_white));
vclear();
interrupt_init();
- start_interrupts();
- init_memory(mb);
-
- printf("%u MB memory available\n", memory_available / 1000000);
vprint(" _ _ \n");
vprint(" ___(_) |_ _ __ ___ _ __ ___ ___ ___ \n");
@@ -46,5 +45,16 @@ void kernel_main(multiboot_info_t *mb) {
vprint(pope);
+// init_memory(mb);
+
+// printf("%u MB memory available\n", memory_available / 1000000);
+
+// printf("I will now exhaust a lot of memory\n");
+// for (int i=0;i<250000000;i++) alloc_cell(0);
+//
+// printf("%u MB memory available\n", memory_available / 1000000);
+
+ start_interrupts();
+
while (1) asm volatile("hlt");
}