Skip to content

Commit

Permalink
Don't name something exit().
Browse files Browse the repository at this point in the history
On aarch64 due to some terrifying include chain we wind up with
Cryptlib's definition of exit here.  I'm not a glutton for punishment,
so I'm just changing the name so it's not coliding.

Signed-off-by: Peter Jones <pjones@redhat.com>
  • Loading branch information
vathpela committed Aug 27, 2014
1 parent 94c9a77 commit 32f1054
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions replacements.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ exit_boot_services(EFI_HANDLE image_key, UINTN map_key)
}

static EFI_STATUS EFIAPI
exit(EFI_HANDLE ImageHandle, EFI_STATUS ExitStatus,
do_exit(EFI_HANDLE ImageHandle, EFI_STATUS ExitStatus,
UINTN ExitDataSize, CHAR16 *ExitData)
{
EFI_STATUS status;
Expand Down Expand Up @@ -206,5 +206,5 @@ hook_system_services(EFI_SYSTEM_TABLE *local_systab)
* bootloader and still e.g. start a new one or run an internal
* shell. */
system_exit = systab->BootServices->Exit;
systab->BootServices->Exit = exit;
systab->BootServices->Exit = do_exit;
}

0 comments on commit 32f1054

Please sign in to comment.