X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fgeekos%2Flowlevel.asm;fp=palacios%2Fsrc%2Fgeekos%2Flowlevel.asm;h=9869d9faae2030bd11bcc7078c72a1792b6fbfa6;hb=4939ecae04ce6416f404670640620a23aee9b914;hp=c530a5c0cca3cc4db7cfec77f83c3efa98b708e8;hpb=190b2ef9470c23c275754b74745933d973f8c439;p=palacios.git diff --git a/palacios/src/geekos/lowlevel.asm b/palacios/src/geekos/lowlevel.asm index c530a5c..9869d9f 100644 --- a/palacios/src/geekos/lowlevel.asm +++ b/palacios/src/geekos/lowlevel.asm @@ -2,7 +2,7 @@ ; Low level interrupt/thread handling code for GeekOS. ; Copyright (c) 2001,2003,2004 David H. Hovemeyer ; Copyright (c) 2003, Jeffrey K. Hollingsworth -; $Revision: 1.3 $ +; $Revision: 1.4 $ ; This is free software. You are permitted to use, ; redistribute, and modify it as specified in the file "COPYING". @@ -172,7 +172,7 @@ EXPORT Set_MSR EXPORT Get_MSR EXPORT Get_CR2 - +EXPORT Get_CR3 EXPORT Proc_test @@ -380,6 +380,11 @@ Get_CR2: align 8 +Get_CR3: + mov eax, cr3 + ret + +align 8 Proc_test: push ebp mov ebp, esp