cpu/x86/reset16.S: Remove handcoded reset vector
Only 3 bytes should be used for the reset vector and it looks like modern tooling has no problem with using a regular relative jump instruction. TESTED: Qemu Q35 still boots fine. Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Change-Id: Ie371000c60d66c032a8dcccb98e7627df09d3aa4 Reviewed-on: https://review.coreboot.org/c/coreboot/+/74797 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
This commit is contained in:
parent
a1b7f5e1b8
commit
53810448fc
1 changed files with 1 additions and 8 deletions
|
|
@ -4,11 +4,4 @@
|
|||
.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 consistently between versions because they are used so rarely.
|
||||
*/
|
||||
jmp _start16bit
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue