]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UefiCpuPkg/ResetVector/Vtf0/Ia16/Init16.asm
Adding files from OvmfPkg to common location. This is so multiple packages can use...
[mirror_edk2.git] / UefiCpuPkg / ResetVector / Vtf0 / Ia16 / Init16.asm
diff --git a/UefiCpuPkg/ResetVector/Vtf0/Ia16/Init16.asm b/UefiCpuPkg/ResetVector/Vtf0/Ia16/Init16.asm
new file mode 100644 (file)
index 0000000..3d3d8b0
--- /dev/null
@@ -0,0 +1,48 @@
+;------------------------------------------------------------------------------\r
+; @file\r
+; 16-bit initialization code\r
+;\r
+; Copyright (c) 2008 - 2009, Intel Corporation\r
+; All rights reserved. This program and the accompanying materials\r
+; are licensed and made available under the terms and conditions of the BSD License\r
+; which accompanies this distribution.  The full text of the license may be found at\r
+; http://opensource.org/licenses/bsd-license.php\r
+;\r
+; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+;\r
+;------------------------------------------------------------------------------\r
+\r
+\r
+BITS    16\r
+\r
+;\r
+; @param[out] DI    'BP' to indicate boot-strap processor\r
+;\r
+EarlyBspInitReal16:\r
+    mov     di, 'BP'\r
+    jmp     short Main16\r
+\r
+;\r
+; @param[out] DI    'AP' to indicate application processor\r
+;\r
+EarlyApInitReal16:\r
+    mov     di, 'AP'\r
+    jmp     short Main16\r
+\r
+;\r
+; Modified:  EAX\r
+;\r
+; @param[in]  EAX   Initial value of the EAX register (BIST: Built-in Self Test)\r
+; @param[out] ESP   Initial value of the EAX register (BIST: Built-in Self Test)\r
+;\r
+EarlyInit16:\r
+    ;\r
+    ; ESP -  Initial value of the EAX register (BIST: Built-in Self Test)\r
+    ;\r
+    mov     esp, eax\r
+\r
+    debugInitialize\r
+\r
+    OneTimeCallRet EarlyInit16\r
+\r