Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Interrupts & Ports - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

        Switch to protected mode

        Entry:
          AX = DE0Ch
          ESI = linear address in first megabyte of values for system registers
          Interrupts disabled

        Return:
          Interrupts disabled
          GDTR, IDTR, LDTR, TR loaded
          SS:ESP must have at least 16 bytes space, and the entry point is
                  required to set up a new stack before enabling interrupts
          EAX, ESI, DS, ES, FS, GS destroyed

        Note:   In protected mode, calling the protected-mode VCPI
                entry point with

          AX = DE0Ch
          DS = segment selector from function DE01h
          SS:ESP in first megabyte of linear memory
          STACK:        QWORD  return address from FAR call to 32-bit segment
                  DWORD  EIP
                  DWORD  CS
                  DWORD  reserved for EFLAGS
                  DWORD  ESP
                  DWORD  SS
                  DWORD  ES
                  DWORD  DS
                  DWORD  FS
                  DWORD  GS
        and interrupts disabled, will switch to virtual86 mode with interrupts
        disabled, all segment registers loaded, and EAX destroyed.

        Format of system register values for switch to protected mode:

        Offset  Size    Description
         00h    DWORD   value for CR3
         04h    DWORD   linear address in first megabyte of value for GDTR
         08h    DWORD   linear address in first megabyte of value for IDTR
         0Ch    WORD    value for LDTR
         0Eh    WORD    value for TR
         10h    PWORD   CS:EIP of protected mode entry-point

.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson