Skip to content

Commit 2ef7124

Browse files
committed
FIX?
Signed-off-by: Sergii Dmytruk <[email protected]>
1 parent 8057bf0 commit 2ef7124

File tree

2 files changed

+15
-16
lines changed

2 files changed

+15
-16
lines changed

grub-core/loader/slaunch/slrt.c

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
#include <grub/dl.h>
2525
#include <grub/slr_table.h>
2626
#include <grub/slaunch.h>
27-
#include <grub/efi/efi.h>
2827
#include <grub/i386/linux.h>
2928
#include <grub/i386/memory.h>
3029
#include <grub/i386/tpm.h>
@@ -323,18 +322,3 @@ grub_update_slrt_policy (struct grub_slaunch_params *slparams)
323322
}
324323
}
325324
}
326-
327-
grub_err_t
328-
grub_efi_install_slr_table (struct grub_slaunch_params *slparams)
329-
{
330-
grub_guid_t slrt_guid = GRUB_UEFI_SLR_TABLE_GUID;
331-
grub_efi_boot_services_t *b;
332-
grub_efi_status_t status;
333-
334-
b = grub_efi_system_table->boot_services;
335-
status = b->install_configuration_table (&slrt_guid, (void *)slparams->slr_table_base);
336-
if (status != GRUB_EFI_SUCCESS)
337-
return grub_error (GRUB_ERR_BAD_OS, "cannot load image");
338-
339-
return GRUB_ERR_NONE;
340-
}

grub-core/loader/slaunch/x86_efi.c

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,3 +437,18 @@ grub_sl_efi_skinit_setup (struct grub_slaunch_params *slparams, void *kernel_add
437437

438438
return err;
439439
}
440+
441+
grub_err_t
442+
grub_efi_install_slr_table (struct grub_slaunch_params *slparams)
443+
{
444+
grub_guid_t slrt_guid = GRUB_UEFI_SLR_TABLE_GUID;
445+
grub_efi_boot_services_t *b;
446+
grub_efi_status_t status;
447+
448+
b = grub_efi_system_table->boot_services;
449+
status = b->install_configuration_table (&slrt_guid, (void *)slparams->slr_table_base);
450+
if (status != GRUB_EFI_SUCCESS)
451+
return grub_error (GRUB_ERR_BAD_OS, "cannot load image");
452+
453+
return GRUB_ERR_NONE;
454+
}

0 commit comments

Comments
 (0)