>The question is how do I get the trap number to this
>function. In the VFSMgr.h it lists the VFS traps but
>I can't figure out how to get the actual trap number.
>
>       #define VFSMGR_TRAP(sel) \
>               _SYSTEM_API(_CALL_WITH_SELECTOR)(_SYSTEM_TABLE,
>sysTrapVFSMgr, sel)

The VFS routines all share the same trap, and use a selector (D2 I think)
to tell which function they're calling.  Look at the definitions for these
macros in the various header files.

If you're expecting to hack at this level, you need to sit down and follow
exactly how the trap dispatching works, and be someone who knows enough
assembly to get there from here.  This stuff isn't exactly designed to be
obvious for casual tweaking... :-)

-David Fedor
Palm, Inc.

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to