force the first jump to init in all stages to be the rel8 version

This commit is contained in:
2024-10-07 20:39:39 -04:00
parent 2bbdaddb68
commit 4218a08658
3 changed files with 13 additions and 9 deletions

View File

@@ -22,7 +22,9 @@
[ORG 0x7A00]
[CPU KATMAI]
[WARNING -reloc-abs-word]
jmp short init
%define __STEVIA_MBR
jmp short (init - $$)
nop
; ###############
@@ -31,8 +33,6 @@ nop
;
; ###############
%define __STEVIA_MBR
%include "cdecl16.inc"
%include "entry.inc"
%include "config.inc"

View File

@@ -23,7 +23,10 @@
[CPU KATMAI]
[WARNING -reloc-abs-word]
[WARNING -reloc-abs-dword]
jmp short init
%define __STEVIA_STAGE2
__STAGE2_ENTRY:
jmp short (init - $$)
nop
; ###############
@@ -32,8 +35,6 @@ nop
;
; ###############
%define __STEVIA_STAGE2
%include "cdecl16.inc"
%include "entry.inc"
%include "config.inc"

View File

@@ -21,8 +21,12 @@
[ORG 0x7C00]
[CPU KATMAI]
[WARNING -reloc-abs-word]
jmp short init
%define __STEVIA_VBR
__ENTRY:
jmp short (init_thunk - $$)
nop
phy_bpb_start:
; fill BPB area with 0x00 since we skip writing this part to disk
; but we need it for the 'jmp short entry; nop' above
@@ -36,7 +40,6 @@ times 54 db 0x00
; Headers/Includes/Definitions
;
; ###############
%define __STEVIA_VBR
%include "cdecl16.inc"
%include "entry.inc"