mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
In order to align the entry points for the various stages on x86 to _start one needs to rename the reset_vector symbol. The section is the same; it's just a symbol change. Change-Id: I0e6bbf1da04a6e248781a9c222a146725c34268a Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://review.coreboot.org/13881 Tested-by: build bot (Jenkins) Reviewed-by: Andrey Petrov <andrey.petrov@intel.com>
13 lines
480 B
PHP
13 lines
480 B
PHP
.section ".reset", "ax", %progbits
|
|
.code16
|
|
.globl _start
|
|
_start:
|
|
.byte 0xe9
|
|
.int _start16bit - ( . + 2 )
|
|
/* Note: The above jump is hand coded to work around bugs in binutils.
|
|
* 5 byte are used for a 3 byte instruction. This works because x86
|
|
* is little endian and allows us to use supported 32bit relocations
|
|
* instead of the weird 16 bit relocations that binutils does not
|
|
* handle consistenly between versions because they are used so rarely.
|
|
*/
|
|
.previous
|