Changed into higher half kernel
https://wiki.osdev.org/Higher_Half_x86_Bare_Bones
This commit is contained in:
@@ -1,10 +1,18 @@
|
||||
#include <kernel/tty.h>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdint.h>
|
||||
|
||||
|
||||
extern "C"
|
||||
void kernel_main()
|
||||
{
|
||||
terminal_initialize();
|
||||
|
||||
printf("Hello from the kernel!\n");
|
||||
|
||||
printf("%p\n", kernel_main);
|
||||
|
||||
int a = 10;
|
||||
printf("%p\n", &a);
|
||||
}
|
||||
Reference in New Issue
Block a user