On Thu, Apr 12, 2007 at 03:36:05PM +0200, Peter Boros
wrote:> I looked at the pid provider''s trap handler code
> (usr/src/uts/sun4u/ml/trap_table.s and
> usr/src/uts/sun4/os/dtrace_subr.c), and try to understand how it works.
> Can someone point me some directions about trap handlers? I am interesed
> in writing a new one (like dtrace does it in pid provider with the 0x38
> trap id). At first, I would be pleased if I could write a trap handler
> which just enters kernel mode, does nothing, than returns to userspace
> (I would use some unused trap identifier, for example 0x39).
Hey Peter,
There''s really not much by way of documentation beyond the code itself.
I suggest you take a look at some other traps that are doing what you
want. Out of curiosity, what are you planning on implementing?
Adam
--
Adam Leventhal, Solaris Kernel Development http://blogs.sun.com/ahl