summaryrefslogtreecommitdiff
path: root/boot
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1995-07-07 19:48:02 +0000
committerMiles Bader <miles@gnu.org>1995-07-07 19:48:02 +0000
commit0f8503fb8925b97f03f567160772b266a91492ca (patch)
treeb55f4df8bdf568ff94d17f92cb239d020e638445 /boot
parenteafab0b52b6bffee0992673321c5f4b269855700 (diff)
entered into RCS
Diffstat (limited to 'boot')
-rw-r--r--boot/mach-crt0.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/boot/mach-crt0.c b/boot/mach-crt0.c
index bf1a605f..3ff7e44d 100644
--- a/boot/mach-crt0.c
+++ b/boot/mach-crt0.c
@@ -84,10 +84,12 @@ int (*_StrongBox_init_routine)();
int errno = 0;
int exit();
+extern int main();
+
extern unsigned char etext;
-extern unsigned char _eprol;
-_start()
+int _start()
{
+ __label__ eprol;
struct kframe {
int kargc;
char *kargv[1]; /* size depends on kargc */
@@ -97,7 +99,6 @@ _start()
/*
* ALL REGISTER VARIABLES!!!
*/
- register int r11; /* needed for init */
register struct kframe *kfp; /* r10 */
register char **targv;
register char **argv;
@@ -121,9 +122,7 @@ _start()
if (mach_init_routine)
(void) mach_init_routine();
-asm(".globl __eprol");
-asm("__eprol:");
-
+ eprol:
#ifdef paranoid
/*
* The standard I/O library assumes that file descriptors 0, 1, and 2
@@ -150,12 +149,9 @@ asm("__eprol:");
if (_StrongBox_init_routine) (*_StrongBox_init_routine)();
if (_monstartup_routine) {
- _monstartup_routine(&_eprol, &etext);
+ _monstartup_routine(&&eprol, &etext);
}
(* (_cthread_exit_routine ? _cthread_exit_routine : exit))
(main(kfp->kargc, argv, targv));
}
-
-
-