Skip to content

Commit

Permalink
loader/slaunch/txt.c: don't modify MLE header
Browse files Browse the repository at this point in the history
Signed-off-by: Sergii Dmytruk <[email protected]>
  • Loading branch information
SergiiDmytruk committed Feb 15, 2025
1 parent 64ed3c6 commit f623b9d
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions grub-core/loader/slaunch/txt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1047,7 +1047,6 @@ grub_txt_boot_prepare (struct grub_slaunch_params *slparams)
grub_err_t err;
grub_uint8_t *txt_heap;
struct grub_txt_os_mle_data *os_mle_data;
struct grub_txt_mle_header *mle_header;
struct grub_txt_acm_header *sinit_base;
struct grub_slr_table *slrt = slparams->slr_table_mem;

Expand All @@ -1067,14 +1066,6 @@ grub_txt_boot_prepare (struct grub_slaunch_params *slparams)

grub_dprintf ("slaunch", "TXT heap successfully prepared\n");

/* Update the MLE header if it's part of the memory image . */
mle_header = (struct grub_txt_mle_header *)(grub_addr_t) (slparams->mle_start + slparams->mle_header_offset);
if (!grub_memcmp (mle_header->uuid, GRUB_TXT_MLE_UUID, 16))
{
mle_header->first_valid_page = 0;
mle_header->mle_end = slparams->mle_size;
}

slparams->dce_base = (grub_uint32_t)(grub_addr_t) sinit_base;
slparams->dce_size = sinit_base->size * 4;

Expand Down

0 comments on commit f623b9d

Please sign in to comment.