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.


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