]> git.sur5r.net Git - u-boot/blobdiff - lib/efi_loader/efi_runtime.c
efi_loader: Clean up system table on exit
[u-boot] / lib / efi_loader / efi_runtime.c
index 3ee27ca9cc624ec8031ccddc428338d89fe44e4d..11d01268d8c03148ae9a2fa4bd83b6698664d8cd 100644 (file)
@@ -125,6 +125,22 @@ static const struct efi_runtime_detach_list_struct efi_runtime_detach_list[] = {
                /* RTC accessors are gone */
                .ptr = &efi_runtime_services.get_time,
                .patchto = &efi_device_error,
+       }, {
+               /* Clean up system table */
+               .ptr = &systab.con_in,
+               .patchto = NULL,
+       }, {
+               /* Clean up system table */
+               .ptr = &systab.con_out,
+               .patchto = NULL,
+       }, {
+               /* Clean up system table */
+               .ptr = &systab.std_err,
+               .patchto = NULL,
+       }, {
+               /* Clean up system table */
+               .ptr = &systab.boottime,
+               .patchto = NULL,
        },
 };