mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 22:05:47 +00:00
[FREELDR/x64] Add Multiboot header
This commit is contained in:
parent
398486f5f6
commit
b524c18a3e
4 changed files with 74 additions and 52 deletions
|
@ -172,6 +172,8 @@ ENDM
|
|||
.skip size, fill
|
||||
ENDM
|
||||
|
||||
#define lXdtPrefix fword ptr
|
||||
|
||||
ljmp MACRO segment, offset
|
||||
DB 0EAh
|
||||
DD offset
|
||||
|
@ -320,12 +322,23 @@ ENDM
|
|||
#define REPEAT .rept
|
||||
#define ENDR .endr
|
||||
|
||||
#define lXdtPrefix
|
||||
|
||||
.macro ljmp segment, offset
|
||||
jmp far ptr \segment:\offset
|
||||
.byte 0xEA
|
||||
.long offset
|
||||
.word segment
|
||||
.endm
|
||||
|
||||
.macro ljmp16 segment, offset
|
||||
jmp far ptr \segment:\offset
|
||||
.byte 0xEA
|
||||
.word offset
|
||||
.word segment
|
||||
.endm
|
||||
|
||||
.macro data32 opcode:vararg
|
||||
.byte 0x66
|
||||
opcode
|
||||
.endm
|
||||
|
||||
.macro retf
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue