2021-08-04 15:14:22 +00:00
|
|
|
#include <stdio.h>
|
2021-08-12 11:07:07 +00:00
|
|
|
#include <stdint.h>
|
2021-08-04 15:14:22 +00:00
|
|
|
|
|
|
|
void kernel_main(void) {
|
|
|
|
printf("Hello from OrionOS!\n");
|
2021-08-05 13:43:31 +00:00
|
|
|
printf("Testing serial\n");
|
2021-08-07 09:58:04 +00:00
|
|
|
serial_printf("Test is success!\n");
|
|
|
|
serial_printf("Newline test\n");
|
|
|
|
char * test_string = "test";
|
2021-08-10 13:18:54 +00:00
|
|
|
serial_printf("This is string from variable: %s\n", test_string);
|
2021-09-05 14:06:42 +00:00
|
|
|
|
2021-08-05 13:43:31 +00:00
|
|
|
printf("Test finished success!\n");
|
2021-09-06 16:33:29 +00:00
|
|
|
asm volatile("sti");
|
|
|
|
for(;;) {
|
|
|
|
asm("hlt");
|
|
|
|
}
|
2021-08-04 15:14:22 +00:00
|
|
|
}
|