Skip to content

Commit

Permalink
i386/txt: do not update MLE header
Browse files Browse the repository at this point in the history
It's measured and we better measure the binary as is without changing it
on the fly.

Signed-off-by: Sergii Dmytruk <[email protected]>
  • Loading branch information
SergiiDmytruk authored and krystian-hebel committed Apr 26, 2024
1 parent b1083c1 commit 99b6c86
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions grub-core/loader/i386/txt/txt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1042,7 +1042,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;

sinit_base = grub_txt_sinit_select (grub_slaunch_module ());
Expand All @@ -1058,12 +1057,6 @@ grub_txt_boot_prepare (struct grub_slaunch_params *slparams)

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

/* Update the MLE header. */
mle_header =
(struct grub_txt_mle_header *) ((grub_uint8_t *) slparams->mle_mem + slparams->mle_header_offset);
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 99b6c86

Please sign in to comment.