cpu/x86/smm: Drop 'entry' struct element
This is a duplicate of code_start. Change-Id: I38e8905e3ed940fb34280c939d6f2f1fce8480a7 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/63476 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-by: Lean Sheng Tan <sheng.tan@9elements.com>
This commit is contained in:
parent
0ab98d5ed3
commit
1b970bd225
|
@ -42,7 +42,6 @@ extern unsigned char _binary_smmstub_start[];
|
|||
struct cpu_smm_info {
|
||||
uint8_t active;
|
||||
uintptr_t smbase;
|
||||
uintptr_t entry;
|
||||
uintptr_t ss_start;
|
||||
uintptr_t code_start;
|
||||
uintptr_t code_end;
|
||||
|
@ -124,10 +123,9 @@ static int smm_create_map(const uintptr_t smbase, const unsigned int num_cpus,
|
|||
const size_t segment_number = i / cpus_per_segment;
|
||||
cpus[i].smbase = smbase - SMM_CODE_SEGMENT_SIZE * segment_number
|
||||
- needed_ss_size * (i % cpus_per_segment);
|
||||
cpus[i].entry = cpus[i].smbase + SMM_ENTRY_OFFSET;
|
||||
cpus[i].code_start = cpus[i].smbase + SMM_ENTRY_OFFSET;
|
||||
cpus[i].code_end = cpus[i].code_start + stub_size;
|
||||
cpus[i].ss_start = cpus[i].smbase + SMM_CODE_SEGMENT_SIZE - needed_ss_size;
|
||||
cpus[i].code_start = cpus[i].entry;
|
||||
cpus[i].code_end = cpus[i].entry + stub_size;
|
||||
printk(BIOS_DEBUG, " Stub [0x%lx-0x%lx[\n", cpus[i].code_start,
|
||||
cpus[i].code_end);
|
||||
printk(BIOS_DEBUG, " Save state [0x%lx-0x%lx[\n",
|
||||
|
|
Loading…
Reference in New Issue