git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
update the readme
[lunaix-os.git]
/
lunaix-os
/
usr
/
libc
/
arch
/
i386
/
crt0.S
diff --git
a/lunaix-os/usr/libc/arch/i386/crt0.S
b/lunaix-os/usr/libc/arch/i386/crt0.S
index 28aa6ba05374b96898124bb6e5e09c5d13189fa8..1418068d4a32aceb63be88dc0383905bc727a1cc 100644
(file)
--- a/
lunaix-os/usr/libc/arch/i386/crt0.S
+++ b/
lunaix-os/usr/libc/arch/i386/crt0.S
@@
-8,7
+8,17
@@
.section .text
.global _start
- _start:
+ _start:
+ xorl %ebp, %ebp
+ movl %esp, %eax
+ andl $-16, %esp
+
+ leal 4(%eax), %ebx
+ pushl %ebx
+ pushl (%eax)
+
+ fninit
+
xorl %eax, %eax
call main