Re: Register a task's exception port from a kext
Re: Register a task's exception port from a kext
- Subject: Re: Register a task's exception port from a kext
- From: Quinn <email@hidden>
- Date: Fri, 3 Oct 2008 16:52:22 +0100
At 21:55 +1000 3/10/08, nicolas vide wrote:
I understand this very well but in my case it is definitely not a
production software.
If you don't care about creating a real product, you have more
options. Specifically, if you link against the entire kernel you
should have access to task_set_special_port, which is a necessary
first step. You will also need to use MIG (in kernel mode!) to
generate a demux routine. Make sure you don't export your catch_xxx
routines, lest they collide with the kernel routines of the same name.
For an example of this check out the "Mach exceptions to BSD signals"
code inside the kernel itself.
<http://www.opensource.apple.com/darwinsource/10.5/xnu-1228//bsd/uxkern/ux_exception.c>
[This link may require an APSL <http://www.opensource.apple.com/apsl/>
account.]
Good luck!
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden