fix self test
This commit is contained in:
parent
18be89ebfe
commit
fd153e305d
@ -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');
|
||||
|
@ -1,3 +1,4 @@
|
||||
#pragma once
|
||||
|
||||
void run_test();
|
||||
void testPhymem(void);
|
||||
void run_test(void);
|
||||
|
Loading…
Reference in New Issue
Block a user