From: <ro...@us...> - 2003-05-20 15:44:51
|
Update of /cvsroot/ltp/ltp/testcases/kernel/syscalls/profil In directory sc8-pr-cvs1:/tmp/cvs-serv11610 Modified Files: profil01.c Log Message: Applied powerpc64 patch created by Steve Munroe. See ltp Bug #740520. Index: profil01.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/profil/profil01.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- profil01.c 4 Apr 2003 16:11:45 -0000 1.6 +++ profil01.c 20 May 2003 15:44:47 -0000 1.7 @@ -95,17 +95,22 @@ char *argv[]; { register int i; - int count, loc, bsize; + int count, loc; + long int bsize; void alrm(); #ifdef __mips__ extern int __start; int lotext = (int)&__start; +#elif defined __powerpc64__ + extern long int _start; + long int *lotextptr = (long*)&_start; + long int lotext = *lotextptr; #else extern int _start; int lotext = (int)&_start; #endif - bsize = (int) &etext; + bsize = (long int) &etext; bsize -= lotext & ~ 4096; count = loc = 0; |