-/* $NetBSD: crt0.s,v 1.2 1995/10/09 23:54:37 cgd Exp $ */
+/* $NetBSD: crt0.s,v 1.4 1995/11/04 00:30:50 cgd Exp $ */
/*
* Copyright (c) 1994, 1995 Carnegie-Mellon University.
#ifdef MCRT0
eprol:
lda a0, eprol
- lda a1, _etext
+ lda a1, etext
CALL(monstartup) /* monstartup(eprol, etext); */
lda a0, _mcleanup
CALL(atexit) /* atext(_mcleanup); */
stq a0, __progname /* store the program name */
2:
/* call main() */
+__callmain:
mov s0, a0
mov s1, a1
mov s2, a2
END(moncontrol)
LEAF(_mcount, 0)
- /* XXX -- dunno what we have to do here! */
- call_pal 0x81 /* XXX op_bugchk */
+ ret zero, (at_reg), 1
END(_mcount)
#endif