summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/npx.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1999-05-06 09:44:57 +0000
committerbde <bde@FreeBSD.org>1999-05-06 09:44:57 +0000
commit5b08c51b31821f3ee69a4da34d5618c450494568 (patch)
tree519c2330fe4c5a08795caf7b4c055e6ca5fefe77 /sys/i386/isa/npx.c
parent897b3119d8cdee2c1e43b35e5c16706c95f19ef1 (diff)
downloadFreeBSD-src-5b08c51b31821f3ee69a4da34d5618c450494568.zip
FreeBSD-src-5b08c51b31821f3ee69a4da34d5618c450494568.tar.gz
Fixed profiling of elf kernels. Made high resolution profiling compile
for elf kernels (it is broken for all kernels due to lack of egcs support). Renaming of many assembler labels is avoided by declaring by declaring the labels that need to be visible to gprof as having type "function" and depending on the elf version of gprof being zealous about discarding the others. A few type declarations are still missing, mainly for SMP. PR: 9413 Submitted by: Assar Westerlund <assar@sics.se> (initial parts)
Diffstat (limited to 'sys/i386/isa/npx.c')
-rw-r--r--sys/i386/isa/npx.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/i386/isa/npx.c b/sys/i386/isa/npx.c
index dc2eb73..fa79f0b 100644
--- a/sys/i386/isa/npx.c
+++ b/sys/i386/isa/npx.c
@@ -32,7 +32,7 @@
* SUCH DAMAGE.
*
* from: @(#)npx.c 7.2 (Berkeley) 5/12/91
- * $Id: npx.c,v 1.66 1999/03/28 23:28:18 dt Exp $
+ * $Id: npx.c,v 1.67 1999/04/16 21:22:24 peter Exp $
*/
#include "npx.h"
@@ -157,6 +157,7 @@ inthand_t probeintr;
__asm(" \n\
.text \n\
.p2align 2,0x90 \n\
+ .type " __XSTRING(CNAME(probeintr)) ",@function \n\
" __XSTRING(CNAME(probeintr)) ": \n\
ss \n\
incl " __XSTRING(CNAME(npx_intrs_while_probing)) " \n\
@@ -174,6 +175,7 @@ inthand_t probetrap;
__asm(" \n\
.text \n\
.p2align 2,0x90 \n\
+ .type " __XSTRING(CNAME(probetrap)) ",@function \n\
" __XSTRING(CNAME(probetrap)) ": \n\
ss \n\
incl " __XSTRING(CNAME(npx_traps_while_probing)) " \n\
OpenPOWER on IntegriCloud