20 lines
490 B
C
20 lines
490 B
C
#include <stdio.h>
|
|
#include <stdint.h>
|
|
|
|
void kernel_main(void) {
|
|
printf("Hello from OrionOS!\n");
|
|
printf("Testing serial\n");
|
|
serial_printf("Test is success!\n");
|
|
serial_printf("Newline test\n");
|
|
char * test_string = "test";
|
|
serial_printf("This is string from variable: %s\n", test_string);
|
|
printf("Test finished success!\n");
|
|
asm volatile("sti");
|
|
uint32_t *ptr = (uint32_t*)0xA0000000;
|
|
uint32_t do_page_fault = *ptr;
|
|
printf("%s", do_page_fault);
|
|
for(;;) {
|
|
asm("hlt");
|
|
}
|
|
}
|