MODE SWITCH

Op-Code: PXENV_MODE_SWITCH
Input: ES:DI points to a t_PXENV_MODE_SWITCH parameter structure that has been initialized by the caller.
Output: The status field in the parameter structure will be set to one of the values represented by the PXENV_STATUS_xxx constants.
Description: This service must be used when changing the processor between real mode and protected mode. The caller must initialize the stack, base code, base data, MLID code, and MLID data selectors and recompute the structure checksum before running this service.
Note: This service can only be called from real mode (before entering, and after leaving, protected mode.) Interrupts need to be disabled when changing the PXENV entry point structure and when calling this service.
Warning! This service can only be used with the default base code interrupt call backs.