diff options
| author | Ada Christine <adachristine18@gmail.com> | 2024-02-02 01:01:44 +0000 |
|---|---|---|
| committer | Ada Christine <adachristine18@gmail.com> | 2024-02-02 01:01:44 +0000 |
| commit | 2fa4e64d36e14e77d9e8ed547d2cc96b6c2ee7de (patch) | |
| tree | 2a194d48445ffb655f039885e11eb17ed449d80e /loader/main_efi.c | |
| parent | ce0c451e37d761024774fb752d86f300c810a8d8 (diff) | |
- don't typedef away function pointers
- cleanups
Diffstat (limited to 'loader/main_efi.c')
| -rw-r--r-- | loader/main_efi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/loader/main_efi.c b/loader/main_efi.c index e49fad6..df156e3 100644 --- a/loader/main_efi.c +++ b/loader/main_efi.c @@ -465,9 +465,9 @@ static EFI_STATUS enter_shim(void) { EFI_STATUS status = EFI_ABORTED; Elf64_Ehdr *ehdr = (Elf64_Ehdr *)shim_image.buffer_base; - efi_shim_entry_func entry; + efi_shim_entry_func *entry; - entry = (efi_shim_entry_func)(shim_image.buffer_base + ehdr->e_entry); + entry = (efi_shim_entry_func *)(shim_image.buffer_base + ehdr->e_entry); kprintf("entering shim @%p\r\n", entry); status = entry(&loader_interface); |
