gets the memory map from GRUB
This commit is contained in:
@ -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);
|
||||
|
@ -13,3 +13,9 @@ void abort(void) {
|
||||
while (1) { }
|
||||
__builtin_unreachable();
|
||||
}
|
||||
|
||||
void panic(const char* str)
|
||||
{
|
||||
printf("%s\n", str);
|
||||
abort();
|
||||
}
|
||||
|
Reference in New Issue
Block a user