]> git.proxmox.com Git - mirror_edk2.git/blame - UefiCpuPkg/ResetVector/Vtf0/Ia16/Init16.asm
UefiCpuPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / UefiCpuPkg / ResetVector / Vtf0 / Ia16 / Init16.asm
CommitLineData
bc252e8e
EB
1;------------------------------------------------------------------------------\r
2; @file\r
3; 16-bit initialization code\r
4;\r
01a1c0fc 5; Copyright (c) 2008 - 2009, Intel Corporation. All rights reserved.<BR>\r
0acd8697 6; SPDX-License-Identifier: BSD-2-Clause-Patent\r
bc252e8e
EB
7;\r
8;------------------------------------------------------------------------------\r
9\r
10\r
11BITS 16\r
12\r
13;\r
14; @param[out] DI 'BP' to indicate boot-strap processor\r
15;\r
16EarlyBspInitReal16:\r
17 mov di, 'BP'\r
18 jmp short Main16\r
19\r
20;\r
21; @param[out] DI 'AP' to indicate application processor\r
22;\r
23EarlyApInitReal16:\r
24 mov di, 'AP'\r
25 jmp short Main16\r
26\r
27;\r
28; Modified: EAX\r
29;\r
30; @param[in] EAX Initial value of the EAX register (BIST: Built-in Self Test)\r
31; @param[out] ESP Initial value of the EAX register (BIST: Built-in Self Test)\r
32;\r
33EarlyInit16:\r
34 ;\r
35 ; ESP - Initial value of the EAX register (BIST: Built-in Self Test)\r
36 ;\r
37 mov esp, eax\r
38\r
39 debugInitialize\r
40\r
41 OneTimeCallRet EarlyInit16\r
42\r