1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

Forward compatibility with future rename of _start to __start.

This commit is contained in:
Jonas 'Sortie' Termansen 2014-12-28 19:18:45 +01:00
parent ab66b91086
commit 524a028a4f
4 changed files with 17 additions and 0 deletions

View file

@ -27,9 +27,12 @@
.text 0x100000
.global _start
.global __start
.type _start, @function
.type __start, @function
.code32
_start:
__start:
jmp prepare_kernel_execution
# Align 32 bits boundary.
@ -148,6 +151,7 @@ Realm64:
# actual 64-bit kernel.
jmp Main
.size _start, . - _start
.size __start, . - __start
.section .data
GDT64: # Global Descriptor Table (64-bit).

View file

@ -27,8 +27,11 @@
.text 0x100000
.global _start
.global __start
.type _start, @function
.type __start, @function
_start:
__start:
jmp prepare_kernel_execution
# Align 32 bits boundary.
@ -66,3 +69,5 @@ prepare_kernel_execution:
fxsave fpu_initialized_regs
jmp beginkernel
.size _start, . - _start
.size __start, . - __start

View file

@ -26,8 +26,11 @@
.section .text
.global _start
.global __start
.type _start, @function
.type __start, @function
_start:
__start:
# Set up end of the stack frame linked list.
xorl %ebp, %ebp
pushq %rbp # rip=0
@ -57,3 +60,4 @@ _start:
movl %eax, %edi
call exit
.size _start, .-_start
.size __start, .-__start

View file

@ -26,8 +26,11 @@
.section .text
.global _start
.global __start
.type _start, @function
.type __start, @function
_start:
__start:
# Set up end of the stack frame linked list.
xorl %ebp, %ebp
pushl %ebp # rip=0
@ -61,3 +64,4 @@ _start:
push %eax
call exit
.size _start, .-_start
.size __start, .-__start