4210fa
From 32f10548cdf1919103654ab65601c8b15c3976a1 Mon Sep 17 00:00:00 2001
4210fa
From: Peter Jones <pjones@redhat.com>
4210fa
Date: Wed, 27 Aug 2014 13:26:23 -0400
4210fa
Subject: [PATCH 53/74] Don't name something exit().
4210fa
4210fa
On aarch64 due to some terrifying include chain we wind up with
4210fa
Cryptlib's definition of exit here.  I'm not a glutton for punishment,
4210fa
so I'm just changing the name so it's not coliding.
4210fa
4210fa
Signed-off-by: Peter Jones <pjones@redhat.com>
4210fa
---
4210fa
 replacements.c | 4 ++--
4210fa
 1 file changed, 2 insertions(+), 2 deletions(-)
4210fa
4210fa
diff --git a/replacements.c b/replacements.c
4210fa
index 5dfa355..f7623d9 100644
4210fa
--- a/replacements.c
4210fa
+++ b/replacements.c
4210fa
@@ -162,7 +162,7 @@ exit_boot_services(EFI_HANDLE image_key, UINTN map_key)
4210fa
 }
4210fa
 
4210fa
 static EFI_STATUS EFIAPI
4210fa
-exit(EFI_HANDLE ImageHandle, EFI_STATUS ExitStatus,
4210fa
+do_exit(EFI_HANDLE ImageHandle, EFI_STATUS ExitStatus,
4210fa
      UINTN ExitDataSize, CHAR16 *ExitData)
4210fa
 {
4210fa
 	EFI_STATUS status;
4210fa
@@ -206,5 +206,5 @@ hook_system_services(EFI_SYSTEM_TABLE *local_systab)
4210fa
 	 * bootloader and still e.g. start a new one or run an internal
4210fa
 	 * shell. */
4210fa
 	system_exit = systab->BootServices->Exit;
4210fa
-	systab->BootServices->Exit = exit;
4210fa
+	systab->BootServices->Exit = do_exit;
4210fa
 }
4210fa
-- 
4210fa
1.9.3
4210fa