Working kernel written on C and userspace-ready #1

Merged
sonya merged 61 commits from dev into main 2026-05-03 09:13:20 +00:00
2 changed files with 8 additions and 2 deletions
Showing only changes of commit 730d88f9b0 - Show all commits
+4
View File
@@ -1,6 +1,10 @@
.section .text.boot, "ax"
.global _start
_start:
sub sp, sp, #16
str x0, [sp]
bl ExceptionsVectorsInit
ldr x0, [sp]
add sp, sp, #16
bl KernelMain
b .
+4 -2
View File
@@ -1,5 +1,7 @@
#include <OS/Log.h>
#include "../Common/bootinfo.h"
void KernelMain(void) {
OSLog("Hi meow! ;3\n");
void KernelMain(Bootinfo* bootinfo) {
OSLog("DTB located at 0x%x\n", bootinfo->dtb);
OSLog("Kernel located at 0x%x\n", bootinfo->kernelInfo.kernelAddress);
}