Re: setjmp/longjmp?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Finn Thain <fthain@xxxxxxxxxxxxxxxxxxx> 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@xxxxxxx
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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Video for Linux]     [Yosemite News]     [Linux S/390]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux