Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


*** empty log message ***
[palacios.git] / palacios / src / palacios / vmm_lowlevel.asm
1 ; -*- fundamental -*-
2
3
4 %ifndef VMM_ASM
5 %define VMM_ASM
6
7 %include "vmm_symbol.asm"
8
9 EXPORT DisableInts
10 EXPORT EnableInts
11
12 EXPORT GetGDTR
13 EXPORT GetIDTR
14 EXPORT GetTR
15
16
17
18
19
20
21 align 8
22 DisableInts:
23         cli
24         ret
25
26
27 align 8
28 EnableInts:
29         sti
30         ret
31
32 align 8
33 GetGDTR:
34         push    ebp
35         mov     ebp, esp
36         pusha   
37         mov     ebx, [ebp + 8]
38         sgdt    [ebx]
39         
40         popa
41         pop     ebp
42         ret
43
44
45 align 8
46 GetIDTR:
47         push    ebp
48         mov     ebp, esp
49         pusha   
50
51         mov     ebx, [ebp + 8]
52         sidt    [ebx]
53         
54         popa
55         pop     ebp
56         ret
57
58
59
60 align 8
61 GetTR:
62         push    ebp
63         mov     ebp, esp
64         pusha   
65         mov     ebx, [ebp + 8]
66         str     [ebx]
67         
68         popa
69         pop     ebp
70         ret
71
72
73
74
75
76
77
78 %endif