VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware/UefiCpuPkg/CpuDxe/Ia32/CpuAsm.asm@ 58459

Last change on this file since 58459 was 58459, checked in by vboxsync, 9 years ago

EFI/Firmware: 'svn merge /vendor/edk2/UDK2010.SR1 /vendor/edk2/current .', reverting and removing files+dirs listed in ReadMe.vbox, resolving conflicts with help from ../UDK2014.SP1/. This is a raw untested merge.

  • Property svn:eol-style set to native
File size: 1.6 KB
Line 
1 TITLE CpuAsm.asm:
2;------------------------------------------------------------------------------
3;*
4;* Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>
5;* This program and the accompanying materials
6;* are licensed and made available under the terms and conditions of the BSD License
7;* which accompanies this distribution. The full text of the license may be found at
8;* http://opensource.org/licenses/bsd-license.php
9;*
10;* THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11;* WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12;*
13;* CpuAsm.asm
14;*
15;* Abstract:
16;*
17;------------------------------------------------------------------------------
18
19 .686
20 .model flat,C
21 .code
22
23;------------------------------------------------------------------------------
24; VOID
25; SetCodeSelector (
26; UINT16 Selector
27; );
28;------------------------------------------------------------------------------
29SetCodeSelector PROC PUBLIC
30 mov ecx, [esp+4]
31 sub esp, 0x10
32 lea eax, setCodeSelectorLongJump
33 mov [esp], eax
34 mov [esp+4], cx
35 jmp fword ptr [esp]
36setCodeSelectorLongJump:
37 add esp, 0x10
38 ret
39SetCodeSelector ENDP
40
41;------------------------------------------------------------------------------
42; VOID
43; SetDataSelectors (
44; UINT16 Selector
45; );
46;------------------------------------------------------------------------------
47SetDataSelectors PROC PUBLIC
48 mov ecx, [esp+4]
49 mov ss, cx
50 mov ds, cx
51 mov es, cx
52 mov fs, cx
53 mov gs, cx
54 ret
55SetDataSelectors ENDP
56
57
58END
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette