diff options
| author | Ada Christine <adachristine18@gmail.com> | 2025-01-27 02:05:07 +0000 |
|---|---|---|
| committer | Ada Christine <adachristine18@gmail.com> | 2025-01-27 02:05:07 +0000 |
| commit | 0d2ddecc9aeb232746b76b4eebdb1381053a8951 (patch) | |
| tree | 31fe2fc38ead88a0d982b06b3783aae4f094b8ad /boot/kjarna.h | |
| parent | 6faeb8d3aed797ddfac66ecc21fc8a717d5e848a (diff) | |
checkpoint. we can fake syscall with the dummy gdt
Diffstat (limited to 'boot/kjarna.h')
| -rw-r--r-- | boot/kjarna.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/boot/kjarna.h b/boot/kjarna.h index 81bb79b..38a550f 100644 --- a/boot/kjarna.h +++ b/boot/kjarna.h @@ -1,7 +1,28 @@ #pragma once +#pragma once + #include <kjarna/interface.h> int main(int argc, char **argv); int image_start(void); +void *malloc(size_t size); +void *calloc(size_t count, size_t size); +void free(void *block); + +struct image_buffer +{ + char *base; + size_t length; +}; + +struct kjarna_boot_image +{ + struct image_buffer buffer; + kjarna_image_entry_func *entry; +}; + +struct kjarna_interface get_boot_interface(void); +struct kjarna_boot_image get_boot_image(void); + |
