diff options
| author | Ada Christine <adachristine18@gmail.com> | 2021-03-17 12:38:27 +0000 |
|---|---|---|
| committer | Ada Christine <adachristine18@gmail.com> | 2021-03-17 12:38:27 +0000 |
| commit | 53ca88735db910c746d6190cca39fcd70d66b650 (patch) | |
| tree | ab0da3a88009f0ddf0e6e2634d0962c364393203 /loader/loader_efi.h | |
initial commit
Diffstat (limited to 'loader/loader_efi.h')
| -rw-r--r-- | loader/loader_efi.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/loader/loader_efi.h b/loader/loader_efi.h new file mode 100644 index 0000000..a08f4c6 --- /dev/null +++ b/loader/loader_efi.h @@ -0,0 +1,25 @@ +#pragma once + +#include <efi.h> +#include <efilib.h> + +#include <stddef.h> +#include <stdnoreturn.h> + +extern EFI_SYSTEM_TABLE *e_st; +extern EFI_BOOT_SERVICES *e_bs; +extern EFI_RUNTIME_SERVICES *e_rt; + +extern EFI_HANDLE e_image_handle; +extern EFI_LOADED_IMAGE_PROTOCOL *e_loaded_image; +extern EFI_SIMPLE_FILE_SYSTEM_PROTOCOL *e_system_partition; +extern EFI_GRAPHICS_OUTPUT_PROTOCOL *e_graphics_output; +extern EFI_STATUS e_last_error; + +noreturn void efi_exit(EFI_STATUS status); + +void *efi_allocate(size_t size); +void efi_free(void *buffer); + +void loader_main(void); + |
