Forward compatibility with future rename of _start to __start.
This commit is contained in:
parent
ab66b91086
commit
524a028a4f
4 changed files with 17 additions and 0 deletions
|
@ -27,9 +27,12 @@
|
||||||
.text 0x100000
|
.text 0x100000
|
||||||
|
|
||||||
.global _start
|
.global _start
|
||||||
|
.global __start
|
||||||
.type _start, @function
|
.type _start, @function
|
||||||
|
.type __start, @function
|
||||||
.code32
|
.code32
|
||||||
_start:
|
_start:
|
||||||
|
__start:
|
||||||
jmp prepare_kernel_execution
|
jmp prepare_kernel_execution
|
||||||
|
|
||||||
# Align 32 bits boundary.
|
# Align 32 bits boundary.
|
||||||
|
@ -148,6 +151,7 @@ Realm64:
|
||||||
# actual 64-bit kernel.
|
# actual 64-bit kernel.
|
||||||
jmp Main
|
jmp Main
|
||||||
.size _start, . - _start
|
.size _start, . - _start
|
||||||
|
.size __start, . - __start
|
||||||
|
|
||||||
.section .data
|
.section .data
|
||||||
GDT64: # Global Descriptor Table (64-bit).
|
GDT64: # Global Descriptor Table (64-bit).
|
||||||
|
|
|
@ -27,8 +27,11 @@
|
||||||
.text 0x100000
|
.text 0x100000
|
||||||
|
|
||||||
.global _start
|
.global _start
|
||||||
|
.global __start
|
||||||
.type _start, @function
|
.type _start, @function
|
||||||
|
.type __start, @function
|
||||||
_start:
|
_start:
|
||||||
|
__start:
|
||||||
jmp prepare_kernel_execution
|
jmp prepare_kernel_execution
|
||||||
|
|
||||||
# Align 32 bits boundary.
|
# Align 32 bits boundary.
|
||||||
|
@ -66,3 +69,5 @@ prepare_kernel_execution:
|
||||||
fxsave fpu_initialized_regs
|
fxsave fpu_initialized_regs
|
||||||
|
|
||||||
jmp beginkernel
|
jmp beginkernel
|
||||||
|
.size _start, . - _start
|
||||||
|
.size __start, . - __start
|
||||||
|
|
|
@ -26,8 +26,11 @@
|
||||||
.section .text
|
.section .text
|
||||||
|
|
||||||
.global _start
|
.global _start
|
||||||
|
.global __start
|
||||||
.type _start, @function
|
.type _start, @function
|
||||||
|
.type __start, @function
|
||||||
_start:
|
_start:
|
||||||
|
__start:
|
||||||
# Set up end of the stack frame linked list.
|
# Set up end of the stack frame linked list.
|
||||||
xorl %ebp, %ebp
|
xorl %ebp, %ebp
|
||||||
pushq %rbp # rip=0
|
pushq %rbp # rip=0
|
||||||
|
@ -57,3 +60,4 @@ _start:
|
||||||
movl %eax, %edi
|
movl %eax, %edi
|
||||||
call exit
|
call exit
|
||||||
.size _start, .-_start
|
.size _start, .-_start
|
||||||
|
.size __start, .-__start
|
||||||
|
|
|
@ -26,8 +26,11 @@
|
||||||
.section .text
|
.section .text
|
||||||
|
|
||||||
.global _start
|
.global _start
|
||||||
|
.global __start
|
||||||
.type _start, @function
|
.type _start, @function
|
||||||
|
.type __start, @function
|
||||||
_start:
|
_start:
|
||||||
|
__start:
|
||||||
# Set up end of the stack frame linked list.
|
# Set up end of the stack frame linked list.
|
||||||
xorl %ebp, %ebp
|
xorl %ebp, %ebp
|
||||||
pushl %ebp # rip=0
|
pushl %ebp # rip=0
|
||||||
|
@ -61,3 +64,4 @@ _start:
|
||||||
push %eax
|
push %eax
|
||||||
call exit
|
call exit
|
||||||
.size _start, .-_start
|
.size _start, .-_start
|
||||||
|
.size __start, .-__start
|
||||||
|
|
Loading…
Reference in a new issue