Xlat_API_Return_Seg

Xlat_API_Return_Seg Segment


The Xlat_API_Return_Seg macro returns a protected-mode selector pointing to the segment retrieved by a function.

Parameters

Segment

Specifies the segment register to receive the protected-mode selector.

Comments

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.

Return Value

This macro has no return value.

Example

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

Xlat_API_Exec_Int 15h

See Also

Xlat_API_Return_Ptr