diff options
author | 1995-12-14 02:02:23 +0000 | |
---|---|---|
committer | 1995-12-14 02:02:23 +0000 | |
commit | 6904f497377a77d2325a52cfe1c077e02d0b312c (patch) | |
tree | d3578d25a5a372ee478fd46d2f96b88cf83ea2dc | |
parent | from netbsd: (diff) | |
download | wireguard-openbsd-6904f497377a77d2325a52cfe1c077e02d0b312c.tar.xz wireguard-openbsd-6904f497377a77d2325a52cfe1c077e02d0b312c.zip |
from netbsd; fix profiling support
-rw-r--r-- | lib/csu/alpha/crt0.s | 8 |
1 files changed, 4 insertions, 4 deletions
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 |