diff options
Diffstat (limited to 'newlib/crt0.s')
| -rw-r--r-- | newlib/crt0.s | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/newlib/crt0.s b/newlib/crt0.s deleted file mode 100644 index ad9884f..0000000 --- a/newlib/crt0.s +++ /dev/null @@ -1,40 +0,0 @@ -.global _start - -_start: - -# copy reent to this page -push %ebx -push %ecx - -mov _impure_ptr,%eax -mov $0xf5000000,%ebx -copy: -mov (%eax),%ecx -mov %ecx,(%ebx) -add $4, %ebx -add $4, %eax -cmp $0xf5001000,%ebx -jne copy - -pop %ecx -pop %ebx - -# environment adress was passed on stack - -movl $0xf5000000, _impure_ptr - -pop %eax -mov %eax, environ - - -# call main (argc and argv are on the stack) -call main - -# push exit code and pass to _exit syscall -push %eax -call _exit - -# this should never be reached! -.wait: - hlt -jmp .wait |
