From 0a7003faec146ff1db829cc2d896ab093da7def0 Mon Sep 17 00:00:00 2001 From: Peter Jones Date: Thu, 11 Jun 2015 13:25:56 -0400 Subject: Ensure that apps launched by shim get correct BS->Exit() behavior Right now applications run by shim get our wrapper for Exit(), but it doesn't do as much cleanup as it should - shim itself also exits, but currently is not doing all the cleanup it should be doing. This changes it so all of shim's cleanup is also performed. Based on a patch and lots of review from Gary Lin. Signed-off-by: Peter Jones --- replacements.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'replacements.h') diff --git a/replacements.h b/replacements.h index bd094240..e38cded1 100644 --- a/replacements.h +++ b/replacements.h @@ -41,6 +41,9 @@ extern int loader_is_participating; extern void hook_system_services(EFI_SYSTEM_TABLE *local_systab); extern void unhook_system_services(void); +extern void hook_exit(EFI_SYSTEM_TABLE *local_systab); +extern void unhook_exit(void); + extern EFI_STATUS install_shim_protocols(void); extern void uninstall_shim_protocols(void); -- cgit v1.2.3