summaryrefslogtreecommitdiff
path: root/replacements.h
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2015-06-11 13:25:56 -0400
committerPeter Jones <pjones@redhat.com>2015-06-11 13:25:56 -0400
commit0a7003faec146ff1db829cc2d896ab093da7def0 (patch)
tree38a86f63b8457ecb46f2d68f6218735557f430ea /replacements.h
parentb9f98904ba133f437ced3660b3b9f033f02244ec (diff)
downloadefi-boot-shim-0a7003faec146ff1db829cc2d896ab093da7def0.tar.gz
efi-boot-shim-0a7003faec146ff1db829cc2d896ab093da7def0.zip
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 <pjones@redhat.com>
Diffstat (limited to 'replacements.h')
-rw-r--r--replacements.h3
1 files changed, 3 insertions, 0 deletions
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);