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-OLD.git] / palacios / src / geekos / timer.c
index 7355efb..01b716d 100644 (file)
@@ -2,7 +2,7 @@
  * GeekOS timer interrupt support
  * Copyright (c) 2001,2003 David H. Hovemeyer <daveho@cs.umd.edu>
  * Copyright (c) 2003, Jeffrey K. Hollingsworth <hollings@cs.umd.edu>
- * $Revision: 1.8 $
+ * $Revision: 1.10 $
  * 
  * This is free software.  You are permitted to use,
  * redistribute, and modify it as specified in the file "COPYING".
@@ -19,6 +19,9 @@
 #include <geekos/debug.h>
 
 
+/* PAD this currently is in nvram.c */
+extern void deliver_timer_interrupt_to_vmm(uint_t period_us);
+
 /* JRL Add a cpu frequency measurement */
 uint_t cpu_khz_freq;
 
@@ -161,6 +164,11 @@ pit_calibrate_tsc(void)
  */
 volatile ulong_t g_numTicks;
 
+ulong_t clock_time(void){
+       return g_numTicks;
+}
+
+
 /*
  * Number of times the spin loop can execute during one timer tick
  */
@@ -232,6 +240,8 @@ static void Timer_Interrupt_Handler(struct Interrupt_State* state)
     }
 
 
+    deliver_timer_interrupt_to_vmm(1000000/HZ);
+
     End_IRQ(state);
 }