Skip to content

Commit

Permalink
grub/slr_table.h: indicate Multiboot version in constants
Browse files Browse the repository at this point in the history
Signed-off-by: Sergii Dmytruk <[email protected]>
  • Loading branch information
SergiiDmytruk committed Jan 5, 2024
1 parent b293777 commit 8566636
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions grub-core/loader/multiboot_mbi2.c
Original file line number Diff line number Diff line change
Expand Up @@ -1178,7 +1178,7 @@ add_multiboot2_slrt_policy_entries (void)
for (i = 0, cur = modules; i < modcnt; i++, cur = cur->next)
{
grub_slaunch_add_slrt_policy_entry (17,
GRUB_SLR_ET_MULTIBOOT_MODULE,
GRUB_SLR_ET_MULTIBOOT2_MODULE,
/*flags=*/0,
cur->start,
cur->size,
Expand Down Expand Up @@ -1208,7 +1208,7 @@ grub_multiboot2_prepare_slaunch_txt (grub_uint32_t mbi_target,
}

grub_slaunch_add_slrt_policy_entry (18,
GRUB_SLR_ET_MULTIBOOT_INFO,
GRUB_SLR_ET_MULTIBOOT2_INFO,
/*flags=*/0,
mbi_target,
mbi_size,
Expand Down
4 changes: 2 additions & 2 deletions include/grub/slr_table.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@
#define GRUB_SLR_ET_CMDLINE 0x0004
#define GRUB_SLR_ET_UEFI_MEMMAP 0x0005
#define GRUB_SLR_ET_RAMDISK 0x0006
#define GRUB_SLR_ET_MULTIBOOT_INFO 0x0007
#define GRUB_SLR_ET_MULTIBOOT_MODULE 0x0008
#define GRUB_SLR_ET_MULTIBOOT2_INFO 0x0007
#define GRUB_SLR_ET_MULTIBOOT2_MODULE 0x0008
#define GRUB_SLR_ET_TXT_OS2MLE 0x0010
#define GRUB_SLR_ET_UNUSED 0xffff

Expand Down

0 comments on commit 8566636

Please sign in to comment.