Xlat_API_Return_Seg Segment |
The Xlat_API_Return_Seg macro returns a protected-mode selector pointing to the segment retrieved by a function.
Segment
Specifies the 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.
This macro has no return value.
Interrupt 15h Function 0C1h returns the segment address of the EBIOS data area in the ES register. The following script translates this function:
Get_EBIOS_Selector:
Xlat_API_Return_Seg es