2 ; This is the assembly code for transferring to control to OS S3 waking vector
5 ; Copyright (c) 2013-2015 Intel Corporation.
7 ; This program and the accompanying materials
8 ; are licensed and made available under the terms and conditions of the BSD License
9 ; which accompanies this distribution. The full text of the license may be found at
10 ; http://opensource.org/licenses/bsd-license.php
12 ; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
13 ; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
19 ;-----------------------------------------
22 ; IN UINT32 S3WakingVector,
23 ; IN UINT32 AcpiLowMemoryBase
25 ;-----------------------------------------
27 AsmTransferControl PROC
28 ; S3WakingVector :DWORD
29 ; AcpiLowMemoryBase :DWORD
42 DB 0b8h, 30h, 0 ; mov ax, 30h as selector
48 mov eax, cr0 ; Get control register 0
50 DB 83h, 0e0h, 0feh ; and eax, 0fffffffeh ; Clear PE bit (bit #0)
51 DB 0fh, 22h, 0c0h ; mov cr0, eax ; Activate real mode
52 DB 0eah ; jmp far @jmp_addr
55 AsmTransferControl ENDP