cpu/x86: Rename __protected_start symbol

It was confusing to have this defined while there was another
symbol bootblock_protected_mode_entry that was not really used
as an entry point.

Change-Id: I3da07ba9c0a9fc15b1515452adfb27f963659951
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/48404
Reviewed-by: Raul Rangel <rrangel@chromium.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Reviewed-by: Jason Glenesk <jason.glenesk@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Kyösti Mälkki 2020-12-05 08:39:57 +02:00
parent 47d58e5df0
commit 6c7441f5e6
5 changed files with 9 additions and 8 deletions

View File

@ -125,7 +125,7 @@ _start16bit:
movl %ebp, %eax movl %ebp, %eax
/* Now that we are in protected mode jump to a 32 bit code segment. */ /* Now that we are in protected mode jump to a 32 bit code segment. */
ljmpl $ROM_CODE_SEG, $__protected_start ljmpl $ROM_CODE_SEG, $bootblock_protected_mode_entry
/** /**
* The gdt is defined in gdt_init.S, it has a 4 Gb code segment * The gdt is defined in gdt_init.S, it has a 4 Gb code segment

View File

@ -25,8 +25,9 @@
*/ */
.align 4 .align 4
.globl __protected_start .globl bootblock_protected_mode_entry
__protected_start: bootblock_protected_mode_entry:
/* Save the BIST value */ /* Save the BIST value */
movl %eax, %ebp movl %eax, %ebp
@ -54,14 +55,14 @@ debug_spinloop:
jz debug_spinloop jz debug_spinloop
#endif #endif
bootblock_protected_mode_entry:
#if !CONFIG(USE_MARCH_586) #if !CONFIG(USE_MARCH_586)
/* MMX registers required here */ /* MMX registers required here */
/* BIST result in eax */ /* BIST result in eax */
movd %eax, %mm0 movd %eax, %mm0
__timestamp:
/* Get an early timestamp */ /* Get an early timestamp */
rdtsc rdtsc
movd %eax, %mm1 movd %eax, %mm1

View File

@ -26,7 +26,7 @@ _cache_as_ram_setup:
/* /*
* on entry: * on entry:
* mm0: BIST (ignored) * mm0: BIST (ignored)
* mm2_mm1: timestamp at bootblock_protected_mode_entry * mm2_mm1: timestamp
*/ */
bootblock_pre_c_entry: bootblock_pre_c_entry:

View File

@ -21,7 +21,7 @@ _cache_as_ram_setup:
/* /*
* on entry: * on entry:
* mm0: BIST (ignored) * mm0: BIST (ignored)
* mm2_mm1: timestamp at bootblock_protected_mode_entry * mm2_mm1: timestamp
*/ */
.global bootblock_pre_c_entry .global bootblock_pre_c_entry

View File

@ -18,7 +18,7 @@ bootblock_resume_entry:
/* /*
* on entry: * on entry:
* mm0: BIST (ignored) * mm0: BIST (ignored)
* mm2_mm1: timestamp at bootblock_protected_mode_entry * mm2_mm1: timestamp
*/ */
.global bootblock_pre_c_entry .global bootblock_pre_c_entry