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.


WTF??????
[palacios.git] / palacios / src / geekos / svm_lowlevel.asm
index 57ea853..fcb495f 100644 (file)
@@ -8,6 +8,10 @@
 %include "symbol.asm"
 
 
+EXPORT GetGDTR
+EXPORT GetIDTR
+
+
 
 EXTERN handle_svm_exit
 
@@ -30,6 +34,32 @@ EXPORT launch_svm
 
 
 
+GetGDTR:
+       push    ebp
+       mov     ebp, esp
+       pusha   
+       mov     ebx, [ebp + 8]
+       sgdt    [ebx]
+       
+       popa
+       pop     ebp
+       ret
+
+
+
+GetIDTR:
+       push    ebp
+       mov     ebp, esp
+       pusha   
+       mov     ebx, [ebp + 8]
+       sgdt    [ebx]
+       
+       popa
+       pop     ebp
+       ret
+
+
+
 ; I think its safe to say that there are some pretty serious register issues...
 launch_svm:
        push    ebp
@@ -43,9 +73,6 @@ launch_svm:
        pop     ebp
        ret
 
-%endif
-
-
 
 
 ; eventual svm_launch
@@ -88,4 +115,9 @@ safe_svm_launch:
        popf
        popa
        pop     ebp
-       ret
\ No newline at end of file
+       ret
+
+
+%endif
+
+