gets the memory map from GRUB

This commit is contained in:
2025-06-09 17:44:50 -04:00
parent f1515ad7b5
commit 83b6a9eaf2
8 changed files with 352 additions and 7 deletions

View File

@ -8,6 +8,8 @@
__attribute__((__noreturn__))
void abort(void);
void panic(const char* str);
char* s64toa(int64_t num, char* buf, int base);
char* u64toa(uint64_t num, char* buf, int base);
char* s32toa(int32_t num, char* buf, int base);

View File

@ -13,3 +13,9 @@ void abort(void) {
while (1) { }
__builtin_unreachable();
}
void panic(const char* str)
{
printf("%s\n", str);
abort();
}