1 ;------------------------------------------------------------------------------
3 ; Copyright (c) 2008, Intel Corporation
4 ; All rights reserved. This program and the accompanying materials
5 ; are licensed and made available under the terms and conditions of the BSD License
6 ; which accompanies this distribution. The full text of the license may be found at
7 ; http://opensource.org/licenses/bsd-license.php
9 ; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 ; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18 ; Transition from 32 bit flat protected mode into 64 bit flat protected mode
20 ;------------------------------------------------------------------------------
24 Transition32FlatTo64Flat:
26 mov eax, ((ADDR_OF_START_OF_RESET_CODE & ~0xfff) - 0x1000)
30 bts eax, 5 ; enable PAE
40 mov cr0, eax ; enable paging
42 jmp LINEAR_CODE64_SEL:ADDR_OF(jumpTo64BitAndLandHere)
44 jumpTo64BitAndLandHere:
50 OneTimeCallRet Transition32FlatTo64Flat