Context Switching is Broken
Martin Guy
martinwguy at gmail.com
Thu Jun 10 16:36:39 EDT 2010
On 6/10/10, Russell King - ARM Linux <linux at arm.linux.org.uk> wrote:
> On Thu, Jun 10, 2010 at 03:16:49PM +0100, Will Deacon wrote:
> > > On Thu, Jun 10, 2010 at 04:11:35AM -0700, Herman Swartz wrote:
> > > > Context switching is broken. The man page for context is example code
> > > > that doesn't work, but should. Does a bug report need to be submitted?
> > >
> > > $ man context
> > > No manual entry for context
> > >
>
> > Quite. man makecontext has a fairly scary example, maybe that's it.
>
> In which case it's a question for libc people - the kernel has nothing
> to do with makecontext, getcontext, setcontext and swapcontext.
>
> I believe for glibc, these are simply unimplemented on ARM, and linking
> a program which uses makecontext with glibc would result in the linker
> issuing:
>
> warning: makecontext is not implemented and will always fail
Indeed on ARM:
martin:~$ make makecontext
cc makecontext.c -o makecontext
/tmp/ccnapqW4.o: In function `main':
makecontext.c:(.text+0x110): warning: warning: getcontext is not
implemented and will always fail
makecontext.c:(.text+0x164): warning: warning: makecontext is not
implemented and will always fail
/tmp/ccnapqW4.o: In function `func1':
makecontext.c:(.text+0x24): warning: warning: swapcontext is not
implemented and will always fail
$ ./makecontext
Function not inplemented.
$
so?
M
More information about the linux-arm-kernel
mailing list