18 lines
389 B
C
18 lines
389 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");
|
|
for(;;) {
|
|
asm("hlt");
|
|
}
|
|
}
|