summaryrefslogtreecommitdiff
path: root/loader/loader_efi.h
diff options
context:
space:
mode:
authorAda Christine <adachristine18@gmail.com>2021-04-23 01:27:23 +0000
committerAda Christine <adachristine18@gmail.com>2021-04-23 01:27:23 +0000
commitee99fed2a52ac8bdd72d5fa1f4d798c7ef41248c (patch)
treec392fe821544f19f659a7569c06f70b6b5dbba20 /loader/loader_efi.h
parentb90e152c02aad225e83a3e6c1b80d1a0e396bb14 (diff)
using struct memory_range and a modifed allocation function
Diffstat (limited to 'loader/loader_efi.h')
-rw-r--r--loader/loader_efi.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/loader/loader_efi.h b/loader/loader_efi.h
index a08f4c6..a1ba360 100644
--- a/loader/loader_efi.h
+++ b/loader/loader_efi.h
@@ -6,6 +6,8 @@
#include <stddef.h>
#include <stdnoreturn.h>
+#include <kernel/memory/range.h>
+
extern EFI_SYSTEM_TABLE *e_st;
extern EFI_BOOT_SERVICES *e_bs;
extern EFI_RUNTIME_SERVICES *e_rt;
@@ -18,6 +20,8 @@ extern EFI_STATUS e_last_error;
noreturn void efi_exit(EFI_STATUS status);
+struct memory_range system_allocate(size_t size);
+
void *efi_allocate(size_t size);
void efi_free(void *buffer);