Skip to content

Commit

Permalink
Use dce_base and dce_size in slparams
Browse files Browse the repository at this point in the history
Signed-off-by: Ross Philipson <[email protected]>
  • Loading branch information
rossphilipson committed Sep 21, 2022
1 parent d84e48c commit b0445fe
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions grub-core/loader/i386/linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -803,8 +803,8 @@ grub_linux_boot (void)

/* Configure relocator GETSEC[SENTER] call. */
state.eax = GRUB_SMX_LEAF_SENTER;
state.ebx = slparams.sinit_acm_base;
state.ecx = slparams.sinit_acm_size;
state.ebx = slparams.dce_base;
state.ecx = slparams.dce_size;
state.edx = 0;
}
else
Expand Down
4 changes: 2 additions & 2 deletions grub-core/loader/i386/txt/txt.c
Original file line number Diff line number Diff line change
Expand Up @@ -878,8 +878,8 @@ grub_txt_boot_prepare (struct grub_slaunch_params *slparams)
mle_header->first_valid_page = 0;
mle_header->mle_end = slparams->mle_size;

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

grub_tpm_relinquish_lcl (0);

Expand Down
4 changes: 2 additions & 2 deletions include/grub/i386/slaunch.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ struct grub_slaunch_params
grub_uint32_t mle_header_offset;
grub_uint32_t ap_wake_block;
grub_uint32_t ap_wake_block_size;
grub_uint32_t sinit_acm_base;
grub_uint32_t sinit_acm_size;
grub_uint32_t dce_base;
grub_uint32_t dce_size;
grub_uint64_t tpm_evt_log_base;
grub_uint32_t tpm_evt_log_size;
};
Expand Down

0 comments on commit b0445fe

Please sign in to comment.