getcontext on Linux PPC64
Sergiy Kyrylkov
sergiy at cs.unm.edu
Fri Apr 2 07:04:21 EST 2004
According to the output I get on YDL 3.0 with 2.6.4 ppc64 kernel it is not
the case on my machine (Apple G5):
#include <stdio.h>
#include <ucontext.h>
#include <errno.h>
int main() {
ucontext_t* pointer;
int result = getcontext(pointer);
printf("error: %s\n", strerror(errno));
}
[sergiy at zeta _test]$ rpm -qa | grep kernel
kernel-source-2.6.4-1.1321
kernel-2.6.4-1.1321
[sergiy at zeta _test]$ uname -a
Linux zeta 2.6.4-1.1321 #1 SMP Tue Mar 16 03:07:10 EST 2004 ppc64 ppc64
ppc64 GNU/Linux
[sergiy at zeta _test]$ gcc -m64 -mpowerpc64 contTest.c
[sergiy at zeta _test]$ file a.out
a.out: ELF 64-bit MSB executable, PowerPC or cisco 7500, version 1 (SYSV),
for GNU/Linux 2.4.19, dynamically linked (uses shared libs), not stripped
[sergiy at zeta _test]$ ./a.out
error: Function not implemented
Any suggestions?
Sergiy
> -----Original Message-----
> From: owner-linuxppc64-dev at lists.linuxppc.org
> [mailto:owner-linuxppc64-dev at lists.linuxppc.org] On Behalf Of
> Steve Munroe
> Sent: Thursday, April 01, 2004 12:32 PM
> To: sergiy at cs.unm.edu
> Cc: linuxppc64-dev at lists.linuxppc.org
> Subject: Re: getcontext on Linux PPC64
>
>
> Sergiy Kyrylkov wrote on 04/01/2004 10:40:47 AM:
>
> >
> > Hi,
> >
> > Since getcontext is not implemented on Linux the following thing
> > worked
> for
> > me on Linux PPC
> >
>
> get/setcontext is implemented in Linux PPC64, in glibc-2.3.2
> and got kernels 2.4.21 and newer.
>
> Steven J. Munroe
> Linux on Power Toolchain Architect
> IBM Corporation, Linux Technology Center
>
>
>
** Sent via the linuxppc64-dev mail list. See http://lists.linuxppc.org/
More information about the Linuxppc64-dev
mailing list