Replaced ASM_GLOBAL with .global, and add start label for some files to avoid link warnings.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8416 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
3d7dfb3886
commit
ae3d1e91ef
@ -24,7 +24,9 @@
|
|||||||
# ****************************************************************************
|
# ****************************************************************************
|
||||||
|
|
||||||
.org 0x0
|
.org 0x0
|
||||||
Start:
|
|
||||||
|
.global _start
|
||||||
|
_start:
|
||||||
|
|
||||||
# ****************************************************************************
|
# ****************************************************************************
|
||||||
# Start Print
|
# Start Print
|
||||||
|
@ -43,7 +43,7 @@
|
|||||||
.equ LOADER_FILENAME_PART3, 0x020202020 # "____"
|
.equ LOADER_FILENAME_PART3, 0x020202020 # "____"
|
||||||
|
|
||||||
.org 0x0
|
.org 0x0
|
||||||
ASM_GLOBAL _start
|
.global _start
|
||||||
_start:
|
_start:
|
||||||
Ia32Jump:
|
Ia32Jump:
|
||||||
jmp BootSectorEntryPoint # JMP inst - 3 bytes
|
jmp BootSectorEntryPoint # JMP inst - 3 bytes
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
.equ LOADER_FILENAME_PART3, 0x020202036 # "6___"
|
.equ LOADER_FILENAME_PART3, 0x020202036 # "6___"
|
||||||
|
|
||||||
.org 0x0
|
.org 0x0
|
||||||
ASM_GLOBAL _start
|
.global _start
|
||||||
_start:
|
_start:
|
||||||
Ia32Jump:
|
Ia32Jump:
|
||||||
jmp BootSectorEntryPoint # JMP inst - 3 bytes
|
jmp BootSectorEntryPoint # JMP inst - 3 bytes
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
.equ LOADER_FILENAME_PART3, 0x20202030 # "0___"
|
.equ LOADER_FILENAME_PART3, 0x20202030 # "0___"
|
||||||
|
|
||||||
.org 0x0
|
.org 0x0
|
||||||
ASM_GLOBAL _start
|
.global _start
|
||||||
_start:
|
_start:
|
||||||
Ia32Jump:
|
Ia32Jump:
|
||||||
jmp BootSectorEntryPoint # JMP inst - 3 bytes
|
jmp BootSectorEntryPoint # JMP inst - 3 bytes
|
||||||
|
@ -21,6 +21,9 @@
|
|||||||
|
|
||||||
.org 0x21000
|
.org 0x21000
|
||||||
|
|
||||||
|
.global _start
|
||||||
|
_start:
|
||||||
|
|
||||||
.equ DEFAULT_HANDLER_SIZE, INT1 - INT0
|
.equ DEFAULT_HANDLER_SIZE, INT1 - INT0
|
||||||
|
|
||||||
.macro jmpCommonIdtEntry
|
.macro jmpCommonIdtEntry
|
||||||
|
@ -26,6 +26,10 @@
|
|||||||
.equ BLOCK_SHIFT, 9
|
.equ BLOCK_SHIFT, 9
|
||||||
|
|
||||||
.org 0x0
|
.org 0x0
|
||||||
|
|
||||||
|
.global _start
|
||||||
|
_start:
|
||||||
|
|
||||||
Ia32Jump:
|
Ia32Jump:
|
||||||
jmp BootSectorEntryPoint # JMP inst - 3 bytes
|
jmp BootSectorEntryPoint # JMP inst - 3 bytes
|
||||||
nop
|
nop
|
||||||
|
@ -27,8 +27,10 @@
|
|||||||
.equ BLOCK_SHIFT, 9
|
.equ BLOCK_SHIFT, 9
|
||||||
|
|
||||||
.org 0x00
|
.org 0x00
|
||||||
ASM_GLOBAL _start
|
|
||||||
|
.global _start
|
||||||
_start:
|
_start:
|
||||||
|
|
||||||
Ia32Jump:
|
Ia32Jump:
|
||||||
jmp BootSectorEntryPoint # JMP inst - 3 bytes
|
jmp BootSectorEntryPoint # JMP inst - 3 bytes
|
||||||
nop
|
nop
|
||||||
@ -452,7 +454,6 @@ gdtr: .word GDT_END - GDT_BASE - 1 # GDT limit
|
|||||||
|
|
||||||
.align 0x2
|
.align 0x2
|
||||||
|
|
||||||
ASM_GLOBAL GDT_BASE
|
|
||||||
GDT_BASE:
|
GDT_BASE:
|
||||||
# null descriptor
|
# null descriptor
|
||||||
.equ NULL_SEL, .-GDT_BASE
|
.equ NULL_SEL, .-GDT_BASE
|
||||||
@ -546,7 +547,6 @@ idtr: .word IDT_END - IDT_BASE - 1 # IDT limit
|
|||||||
#idt_tag db "IDT",0
|
#idt_tag db "IDT",0
|
||||||
.align 0x2
|
.align 0x2
|
||||||
|
|
||||||
ASM_GLOBAL IDT_BASE
|
|
||||||
IDT_BASE:
|
IDT_BASE:
|
||||||
# divide by zero (INT 0)
|
# divide by zero (INT 0)
|
||||||
.equ DIV_ZERO_SEL, .-IDT_BASE
|
.equ DIV_ZERO_SEL, .-IDT_BASE
|
||||||
|
@ -27,6 +27,10 @@
|
|||||||
.equ BLOCK_SHIFT, 9
|
.equ BLOCK_SHIFT, 9
|
||||||
|
|
||||||
.org 0x0
|
.org 0x0
|
||||||
|
|
||||||
|
.global _start
|
||||||
|
_start:
|
||||||
|
|
||||||
Ia32Jump:
|
Ia32Jump:
|
||||||
jmp BootSectorEntryPoint # JMP inst - 3 bytes
|
jmp BootSectorEntryPoint # JMP inst - 3 bytes
|
||||||
nop
|
nop
|
||||||
|
Loading…
x
Reference in New Issue
Block a user