Added
Link Here
|
1 |
--- src/prof/prof.cpp.orig 2007-10-04 01:07:54.000000000 +0200 |
2 |
+++ src/prof/prof.cpp 2007-10-04 01:08:31.000000000 +0200 |
3 |
@@ -279,7 +279,7 @@ |
4 |
|
5 |
void profCount() |
6 |
{ |
7 |
- register char *selfpc; |
8 |
+ register u32 selfpc; |
9 |
register unsigned short *frompcindex; |
10 |
register struct tostruct *top; |
11 |
register struct tostruct *prevtop; |
12 |
@@ -292,7 +292,7 @@ |
13 |
|
14 |
/* selfpc = pc pushed by mcount call. |
15 |
This identifies the function that was just entered. */ |
16 |
- selfpc = (char *) reg[14].I; |
17 |
+ selfpc = (u32) reg[14].I; |
18 |
/* frompcindex = pc in preceding frame. |
19 |
This identifies the caller of the function just entered. */ |
20 |
frompcindex = (unsigned short *) reg[12].I; |