Work around assembler error from clang 10.0.0 in gptboot:

stand/i386/gptboot/gptldr.S:141:3: error: value of 36878 is too large for field of 2 bytes.
  jmp MEM_JMP # Start BTX
  ^

Use the same construct as in stand/i386/boot2/boot1.S, which ensures the
jump distance does not become too large.

MFC after:	3 days
This commit is contained in:
Dimitry Andric 2020-01-28 21:41:37 +00:00
parent e54f2950a6
commit ae55765309

View File

@ -138,5 +138,5 @@ seta20.3: sti # Enable interrupts
* Save drive number from BIOS so boot2 can see it and start BTX.
*/
movb %dl,MEM_ARG
jmp MEM_JMP # Start BTX
jmp start+MEM_JMP-MEM_ORG # Start BTX
end: