arch/x86/car.ld: Rename suffix _start/_end
This is more in line with how linker symbol for regions are defined. Change-Id: I0bd7ae59a27909ed0fd38e6f7193816cb57e76af Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/36695 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
committed by
Patrick Georgi
parent
fee2fdecc2
commit
df9cdcfc38
@ -30,7 +30,7 @@ _start:
|
||||
call gdt_init
|
||||
|
||||
/* reset stack pointer to CAR stack */
|
||||
mov $_car_stack_end, %esp
|
||||
mov $_ecar_stack, %esp
|
||||
|
||||
/* clear .bss section as it is not shared */
|
||||
cld
|
||||
|
@ -37,9 +37,9 @@
|
||||
* use CAR it can be reused. The chipset/SoC is expected to provide
|
||||
* the stack size. */
|
||||
#if CONFIG(C_ENVIRONMENT_BOOTBLOCK)
|
||||
_car_stack_start = .;
|
||||
_car_stack = .;
|
||||
. += CONFIG_DCACHE_BSP_STACK_SIZE;
|
||||
_car_stack_end = .;
|
||||
_ecar_stack = .;
|
||||
#endif
|
||||
/* The pre-ram cbmem console as well as the timestamp region are fixed
|
||||
* in size. Therefore place them above the car global section so that
|
||||
@ -59,10 +59,10 @@
|
||||
|
||||
TIMESTAMP(., 0x200)
|
||||
|
||||
_car_ehci_dbg_info_start = .;
|
||||
_car_ehci_dbg_info = .;
|
||||
/* Reserve sizeof(struct ehci_dbg_info). */
|
||||
. += 80;
|
||||
_car_ehci_dbg_info_end = .;
|
||||
_ecar_ehci_dbg_info = .;
|
||||
|
||||
/* _bss and _ebss provide symbols to per-stage
|
||||
* variables that are not shared like the timestamp and the pre-ram
|
||||
@ -87,8 +87,8 @@
|
||||
_car_unallocated_start = .;
|
||||
|
||||
#if !CONFIG(C_ENVIRONMENT_BOOTBLOCK)
|
||||
_car_stack_start = .;
|
||||
_car_stack_end = _car_region_end;
|
||||
_car_stack = .;
|
||||
_ecar_stack = _car_region_end;
|
||||
#endif
|
||||
_car_region_end = . + CONFIG_DCACHE_RAM_SIZE - (. - _car_region_start);
|
||||
}
|
||||
|
@ -27,15 +27,15 @@ extern char _car_region_end[];
|
||||
* This is the stack area used for all stages that execute when cache-as-ram
|
||||
* is up. Area is not cleared in between stages.
|
||||
*/
|
||||
extern char _car_stack_start[];
|
||||
extern char _car_stack_end[];
|
||||
#define _car_stack_size (_car_stack_end - _car_stack_start)
|
||||
extern char _car_stack[];
|
||||
extern char _ecar_stack[];
|
||||
#define _car_stack_size (_ecar_stack - _car_stack)
|
||||
|
||||
extern char _car_unallocated_start[];
|
||||
|
||||
extern char _car_ehci_dbg_info_start[];
|
||||
extern char _car_ehci_dbg_info_end[];
|
||||
extern char _car_ehci_dbg_info[];
|
||||
extern char _ecar_ehci_dbg_info[];
|
||||
#define _car_ehci_dbg_info_size \
|
||||
(_car_ehci_dbg_info_end - _car_ehci_dbg_info_start)
|
||||
(_ecar_ehci_dbg_info - _car_ehci_dbg_info)
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user