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.


lot of changes
[palacios.git] / palacios / src / devices / timer.c
index d941fe5..65d1a1b 100644 (file)
@@ -40,7 +40,9 @@ static struct vm_device_ops dev_ops = {
 
 struct vm_device * create_timer() {
   struct timer_state * timer = NULL;
-  V3_Malloc(struct timer_state *, timer, sizeof(struct timer_state));
+  timer = (struct timer_state *)V3_Malloc( sizeof(struct timer_state));
+  V3_ASSERT(timer != NULL);
+
   struct vm_device * dev = create_device("Timer", &dev_ops, timer);
   
   return dev;