Move generic start code and memset into arch/generic.h

This commit is contained in:
2025-05-02 11:36:05 -04:00
parent ab5dd8d9fb
commit d47709b03c
7 changed files with 40 additions and 25 deletions

View File

@@ -1,6 +1,8 @@
#if defined(__aarch64__)
#include "../int.h"
#include "generic.h"
void exit(int8_t status){
asm ( "mov x0, %0\n" // Move the exit status into register x0
"mov x8, #93\n" // Syscall number for 'exit' is 93 in AArch64