[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
source of x86 swapcontext() ?
From: |
Leszek Koltunski |
Subject: |
source of x86 swapcontext() ? |
Date: |
Fri, 9 Jul 2004 20:33:36 +0200 (CEST) |
Hello glibc gurus,
I am trying to find sources of the swapcontext() function, version x86.
Now,
utumno:~/glibc-2.3.2$ find . -name "*.c" -exec grep -H swapcontext {} \;
./sysdeps/generic/swapcontext.c:swapcontext (oucp, ucp)
./sysdeps/generic/swapcontext.c:stub_warning (swapcontext)
./sysdeps/unix/sysv/linux/ia64/swapcontext.c:__swapcontext (ucontext_t
*oucp, const ucontext_t *ucp)
./sysdeps/unix/sysv/linux/ia64/swapcontext.c:weak_alias (__swapcontext,
swapcontext)
./sysdeps/unix/sysv/linux/sparc/sparc64/swapcontext.c:__swapcontext
(ucontext_t *oucp, const ucontext_t *ucp)
./sysdeps/unix/sysv/linux/sparc/sparc64/swapcontext.c: extern void
__swapcontext_ret (void);
./sysdeps/unix/sysv/linux/sparc/sparc64/swapcontext.c:
oucp->uc_mcontext.mc_gregs[MC_PC] = (long) __swapcontext_ret;
./sysdeps/unix/sysv/linux/sparc/sparc64/swapcontext.c:
oucp->uc_mcontext.mc_gregs[MC_NPC] = ((long) __swapcontext_ret) + 4;
./sysdeps/unix/sysv/linux/sparc/sparc64/swapcontext.c: .type
__swapcontext_ret, #function \n\
./sysdeps/unix/sysv/linux/sparc/sparc64/swapcontext.c:__swapcontext_ret:
\n\
./sysdeps/unix/sysv/linux/sparc/sparc64/swapcontext.c: .size
__swapcontext_ret, .-__swapcontext_ret \n\
./sysdeps/unix/sysv/linux/sparc/sparc64/swapcontext.c:weak_alias
(__swapcontext, swapcontext)
./manual/examples/swapcontext.c: swapcontext (&uc[n], &uc[3 -
n]);
./manual/examples/swapcontext.c: swapcontext (&uc[0], &uc[1]);
./stdlib/tst-setcontext.c: if (swapcontext (&ctx[1], &ctx[2]) != 0)
./stdlib/tst-setcontext.c: printf ("%s: swapcontext: %m\n",
__FUNCTION__);
./stdlib/tst-setcontext.c: if (swapcontext (&ctx[2], &ctx[1]) != 0)
./stdlib/tst-setcontext.c: printf ("%s: swapcontext: %m\n",
__FUNCTION__);
./stdlib/tst-setcontext.c: if (swapcontext (&ctx[0], &ctx[2]) != 0)
./stdlib/tst-setcontext.c: printf ("%s: swapcontext: %m\n",
__FUNCTION__);
results in a few hits, but:
1) stuff from /sysdeps/generic/swapcontext.c is just a stub,
2) I assume that stuff from /sysdeps/unix/sysv/linux/ia64/swapcontext.c
and /sysdeps/unix/sysv/linux/sparc/sparc64/swapcontext.c is related to
ia64 and sparc64 architectures
3) finally, /manual/examples/swapcontext.c and /stdlib/tst-setcontext.c
are examples.
The question: where can I find that function?
Please CC me in your answers as i am not subscribed to the list.
Leszek Koltunski
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- source of x86 swapcontext() ?,
Leszek Koltunski <=