opensubscriber
   Find in this group all groups
 
Unknown more information…

l : linux-m68k@vger.kernel.org 16 January 2008 • 5:38PM -0500

Re: setjmp/longjmp?
by Andreas Schwab

REPLY TO AUTHOR
 
REPLY TO GROUP




Finn Thain <fthain@tele...> writes:

> Is setjmp/longjmp allowed in kernel code? Is it even implemented?

No and no.

> The reason I ask is that the only working Mac pseudo DMA implementation I
> have found uses it (in NetBSD/FreeBSD, sys/arch/mac68k/obio/esp.c) to
> longjmp from the bus error handler back to the driver. My driver doesn't
> use that algorithm and doesn't work :-(
>
> Anyone have any suggestions?

See <asm/uaccess.h> for how to use exception handlers.

Andreas.

--
Andreas Schwab, SuSE Labs, schwab@suse...
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."
-
To unsubscribe from this list: send the line "unsubscribe linux-m68k" in
the body of a message to majordomo@vger...
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.