These two days have been blocked by this problem.
The VxWorks document does not mention how the root task of RTP of VxWorks receives the event from the kernel mode.
The root Rask here refers to the task automatically generated after RTP spwan.
It is said that some other companies also use this workaround method. Currently, WinDriver is helpless.
First, we need to clarify one concept: RTP can only see the rtp pid, but not the RTP rtp_id.
1. The first step is to obtain the PID, which is actually a member of wind_rtp.
Obj_handle pid = rtphandleidget (rtpptu0id)
2. Pass the PID and rtp_id as parameters to objhandletoobjid to obtain the obj_id.
Obj_id = objhandletoobjid (PID, rtp_id, false)
3. in kernel mode, use the obj_id obtained above as the task ID of the kernel task to send the event
Eventsend (INT) (obj_id, mask)
The above are all pseudoCodeAnd is a solution that is currently known.
This method cannot solve the problem of how other tasks in RTP receive events from the kernel mode.