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
11 EXPORT GetGDTR
12 EXPORT GetIDTR
13 EXPORT GetTR
14
15
16
17
18
19
20 align 8
21 DisableInts:
22         cli
23         ret
24
25
26 align 8
27 GetGDTR:
28         push    ebp
29         mov     ebp, esp
30         pusha   
31         mov     ebx, [ebp + 8]
32         sgdt    [ebx]
33         
34         popa
35         pop     ebp
36         ret
37
38
39 align 8
40 GetIDTR:
41         push    ebp
42         mov     ebp, esp
43         pusha   
44
45         mov     ebx, [ebp + 8]
46         sidt    [ebx]
47         
48         popa
49         pop     ebp
50         ret
51
52
53
54 align 8
55 GetTR:
56         push    ebp
57         mov     ebp, esp
58         pusha   
59         mov     ebx, [ebp + 8]
60         str     [ebx]
61         
62         popa
63         pop     ebp
64         ret
65
66
67
68
69
70
71
72 %endif