Xlat_API_Return_Seg


Xlat_API_Return_Seg  Segment

Returns a protected-mode selector pointing to the segment retrieved by a function.

Segment

Segment register to receive the protected-mode selector.

Although this macro is placed before the Xlat_API_Exec_Int macro in a translation script, the selector is created after the interrupt has been executed.

If an appropriate selector does not already exist, the macro automatically creates one. This service fails if it cannot create an appropriate LDT selector.

The following example translates the return value of Interrupt 15h Function 0C1h, which returns the segment address of the EBIOS data area in the ES register.


Get_EBIOS_Selector:
    Xlat_API_Return_Seg es
    Xlat_API_Exec_Int   15h