c774b9ae08
Patches provided by Martijn van Buul in PR 35585. Bump PKGREVISION to be on the safe side, in case this changes anything on 32bit platforms.
22 lines
727 B
Text
22 lines
727 B
Text
$NetBSD: patch-ae,v 1.1 2007/02/16 01:52:20 wiz Exp $
|
|
|
|
--- src/prof/prof.cpp.orig 2004-05-13 16:31:58.000000000 +0200
|
|
+++ src/prof/prof.cpp
|
|
@@ -279,7 +279,7 @@ void profCleanup()
|
|
|
|
void profCount()
|
|
{
|
|
- register char *selfpc;
|
|
+ register u32 selfpc;
|
|
register unsigned short *frompcindex;
|
|
register struct tostruct *top;
|
|
register struct tostruct *prevtop;
|
|
@@ -292,7 +292,7 @@ void profCount()
|
|
|
|
/* selfpc = pc pushed by mcount call.
|
|
This identifies the function that was just entered. */
|
|
- selfpc = (char *) reg[14].I;
|
|
+ selfpc = (u32) reg[14].I;
|
|
/* frompcindex = pc in preceding frame.
|
|
This identifies the caller of the function just entered. */
|
|
frompcindex = (unsigned short *) reg[12].I;
|