From: deraadt Date: Thu, 14 Dec 1995 02:02:23 +0000 (+0000) Subject: from netbsd; fix profiling support X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=6904f497377a77d2325a52cfe1c077e02d0b312c;p=openbsd from netbsd; fix profiling support --- diff --git a/lib/csu/alpha/crt0.s b/lib/csu/alpha/crt0.s index de058c8f24c..bad42ddb660 100644 --- a/lib/csu/alpha/crt0.s +++ b/lib/csu/alpha/crt0.s @@ -1,4 +1,4 @@ -/* $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. @@ -63,7 +63,7 @@ LEAF(__start, 0) /* XXX */ #ifdef MCRT0 eprol: lda a0, eprol - lda a1, _etext + lda a1, etext CALL(monstartup) /* monstartup(eprol, etext); */ lda a0, _mcleanup CALL(atexit) /* atext(_mcleanup); */ @@ -81,6 +81,7 @@ eprol: stq a0, __progname /* store the program name */ 2: /* call main() */ +__callmain: mov s0, a0 mov s1, a1 mov s2, a2 @@ -101,7 +102,6 @@ LEAF(moncontrol, 0) 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