The DevHlp_RAS function provides a service for device drivers to add information to the System Trace buffer.
Note: DevHlp_RAS is a 16-bit API.
Coding Example.
         MOV   AX,MajorCode           ; major trace event code (240-255)
         MOV   BX,Length              ; length of data area (0-512 bytes)
         MOV   CX,MinorCode           ; minor trace event code (0-255)
         LDS   SI,pData               ; pointer to trace data
         MOV   DL,28H                 ; DevHlp_RAS function code
         CALL  [Device_Help]          ; invoke device helper
16-bit MASM Example
Parameters.
MajorCode
Results.
         If CF = 0            Trace record placed in trace buffer
         Else
            Data not traced
The possible errors are :
Remarks.
The trace facility maintains an array of 32 bytes (256 bits), in which each bit represents a major event code. This array is updated each time the user enables or disables tracing of a major event. The device driver must check this array before calling DevHlp_RAS to ensure that the major event specified is currently enabled for tracing. This array is located in the Global Infoformation Segment.
All registers are preserved. Interrupts are disabled while the trace data is saved and then re-enabled if they were initially enabled.