summaryrefslogtreecommitdiff
path: root/libc/syscall
diff options
context:
space:
mode:
authorRobert de Bath <rdebath@poboxes.com>1998-07-01 01:00:00 +0200
committerLubomir Rintel <lkundrak@v3.sk>2013-10-23 23:40:31 +0200
commitec5f28e3f1400b5dacb88eda2d9db472a20b4349 (patch)
treeb3215b2306709d0412fd7845c78ca63ccaa2e29b /libc/syscall
parent2f828530e36a02c5b4c534e42ab812370c2bf7d9 (diff)
downloaddev86-ec5f28e3f1400b5dacb88eda2d9db472a20b4349.tar.gz
Import Dev86src-0.14.3.tar.gzv0.14.3
Diffstat (limited to 'libc/syscall')
-rw-r--r--libc/syscall/syslib0.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libc/syscall/syslib0.c b/libc/syscall/syslib0.c
index 1a92179..24fdbf0 100644
--- a/libc/syscall/syslib0.c
+++ b/libc/syscall/syslib0.c
@@ -22,7 +22,7 @@ char ** environ;
#asm
loc 2
call_main:
- .word _main ! Segment 2 is the trailing pointers, main and the
+ .word run_main ! Segment 2 is the trailing pointers, main and the
.word call_exit ! routine to call exit.
#if __FIRST_ARG_IN_AX__
.data
@@ -71,6 +71,9 @@ no_entry:
inc bx
jmp auto_run ! And round for the next.
+run_main:
+ br _main
+
call_exit: ! Last item called by above.
pop bx ! Be tidy.
#if !__FIRST_ARG_IN_AX__