Adding support for mips64. Use 64 bit variable to store the 64 bit
address.
Tested on mips64 system running Cavium Networks Octeon chip, Linux
2.6.27.
The patch:
------------------------------------------------------------------------
----
--- testcases/kernel/syscalls/profil/profil01.c.orig 2008-10-07
16:32:57.000000000 -0700
+++ testcases/kernel/syscalls/profil/profil01.c 2008-10-07
16:34:34.000000000 -0700
@@ -108,8 +108,13 @@
long int bsize;
void alrm();
#ifdef __mips__
+ #if _MIPS_SIM == _MIPS_SIM_ABI64
+ extern long int __start;
+ long int lotext = (long int)& __start;
+ #else
extern int __start;
int lotext = (int)&__start;
+ #endif
#elif defined(__powerpc64__)
extern long int _start;
long int *lotextptr = (long*)&_start;
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list