Initial Commit
This commit is contained in:
commit
7f943be8f0
7 changed files with 114 additions and 0 deletions
11
src/kernel/kernel.c
Normal file
11
src/kernel/kernel.c
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
|
||||
void kmain() {
|
||||
char *uart = (char *)0x10000000;
|
||||
char *msg = "Hello, OS World!\n";
|
||||
|
||||
for (int i = 0; msg[i] != '\0'; i++) {
|
||||
*uart = msg[i]; // Write each character to the UART
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue