1 #------------------------------------------------------------------------------
3 # Copyright (c) 2006, 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 # AsmEnablePaging64 function
22 #------------------------------------------------------------------------------
25 #------------------------------------------------------------------------------
28 # InternalX86EnablePaging64 (
30 # IN UINT64 EntryPoint, %rsi
31 # IN UINT64 Context1, OPTIONAL %rdx
32 # IN UINT64 Context2, OPTIONAL %rcx
33 # IN UINT64 NewStack %r8
35 #------------------------------------------------------------------------------
36 .global _InternalX86EnablePaging64;
37 _InternalX86EnablePaging64:
42 addl $(L1-Base),(%rsp)
55 addr32 mov (%esp),%rbx
56 addr32 mov 0x8(%esp),%rcx
57 addr32 mov 0x10(%esp),%rdx
58 addr32 mov 0x18(%esp),%rsp