Commit fd153e30 authored by Mathieu Maret's avatar Mathieu Maret

fix self test

parent 18be89eb
......@@ -63,6 +63,9 @@ void kmain(unsigned long magic, unsigned long addr)
printf("Setting up Pagination\n");
paddr_t lastUserByMem;
memSetup(upper_mem, &lastUserByMem);
#ifdef RUN_TEST
testPhymem();
#endif
pagingSetup(lastUserByMem);
printf("Setting up IRQ handlers\n");
......
......@@ -3,7 +3,7 @@
#include "serial.h"
#include "vga.h"
static void testPhymem()
void testPhymem(void)
{
printf("Testing memory PHY\n");
struct mem_desc *allocated_page_list;
......@@ -38,9 +38,8 @@ static void testPhymem()
}
}
void run_test()
void run_test(void)
{
testPhymem();
printf("Testing Serial");
serialWrite('h');
serialWrite('e');
......
#pragma once
void run_test();
void testPhymem(void);
void run_test(void);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment