Transição do 80386 de real para protected mode requer sequência precisa:
- Ativar A20 Gate: Permite endereçamento 20-bit completo (via controlador teclado ou portas I/O).
- Definir Registradores Segmento: Inicializar CS, DS, ES, SS com valores base/limite protected-mode.
- Carregar GDT: Criar Global Descriptor Table; carregar GDTR com endereço base.
- Carregar Task Register (TR): Configurar Task State Segment (TSS); carregar TR com base TSS.
- Ativar Protected Mode: Escrever Machine Status Word (MSW) para definir bit PE (bit 0).
- Inicializar IDT: Configurar Interrupt Descriptor Table para protected mode.
- Far Jump: Executar far jump (ex:
JMP 0x08:0x00000000) para limpar pipeline e entrar protected mode no novo CS:EIP.
Passos exatos variam por OS/software. Gestão memória, segmentação e tratamento exceções críticos para operação estável.