]>
Commit | Line | Data |
---|---|---|
abef469f | 1 | ;------------------------------------------------------------------------------ ;\r |
2 | ; Copyright (c) 2012, Intel Corporation. All rights reserved.<BR>\r | |
3 | ; This program and the accompanying materials\r | |
4 | ; are licensed and made available under the terms and conditions of the BSD License\r | |
5 | ; which accompanies this distribution. The full text of the license may be found at\r | |
6 | ; http://opensource.org/licenses/bsd-license.php.\r | |
7 | ;\r | |
8 | ; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
9 | ; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
10 | ;\r | |
11 | ; Module Name:\r | |
12 | ;\r | |
13 | ; AsmFuncs.Asm\r | |
14 | ;\r | |
15 | ; Abstract:\r | |
16 | ;\r | |
17 | ; Assembly function to set segment selectors.\r | |
18 | ;\r | |
19 | ; Notes:\r | |
20 | ;\r | |
21 | ;------------------------------------------------------------------------------\r | |
22 | \r | |
23 | .686\r | |
24 | .model flat,C\r | |
25 | \r | |
26 | .code\r | |
27 | \r | |
28 | ;------------------------------------------------------------------------------\r | |
29 | ; VOID\r | |
30 | ; EFIAPI\r | |
31 | ; AsmSetDataSelectors (\r | |
32 | ; IN UINT16 SelectorValue\r | |
33 | ; );\r | |
34 | ;------------------------------------------------------------------------------\r | |
35 | AsmSetDataSelectors PROC near public\r | |
36 | mov eax, [esp + 4]\r | |
37 | mov ds, ax\r | |
38 | mov es, ax\r | |
39 | mov fs, ax\r | |
40 | mov gs, ax\r | |
41 | mov ss, ax \r | |
42 | ret\r | |
43 | AsmSetDataSelectors ENDP\r | |
44 | \r | |
45 | END\r |