From e9495844291a85a1f7ba3c76742a0dd1bf574e5f Mon Sep 17 00:00:00 2001 From: Miguel Date: Wed, 10 Oct 2018 10:15:49 +0200 Subject: hosted gcc compiler --- userspace/crt0.s | 39 --------------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 userspace/crt0.s (limited to 'userspace/crt0.s') diff --git a/userspace/crt0.s b/userspace/crt0.s deleted file mode 100644 index dedc86c..0000000 --- a/userspace/crt0.s +++ /dev/null @@ -1,39 +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 - -movl $0xf5000000, _impure_ptr - -# environment adress was passed on stack - -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 -- cgit v1.2.3