X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fvm_dev.c;h=17cc8be68c169ddf74e44b79e45de76410935c36;hb=e70e95962c26832628d586e07f9cd1a2e1852d72;hp=8cb45b4fa200d65cd8dc3311878796a4debd28c0;hpb=2b1f4ef19d766727f873476861c64339c8836a40;p=palacios.git diff --git a/palacios/src/palacios/vm_dev.c b/palacios/src/palacios/vm_dev.c index 8cb45b4..17cc8be 100644 --- a/palacios/src/palacios/vm_dev.c +++ b/palacios/src/palacios/vm_dev.c @@ -1,3 +1,23 @@ +/* + * This file is part of the Palacios Virtual Machine Monitor developed + * by the V3VEE Project with funding from the United States National + * Science Foundation and the Department of Energy. + * + * The V3VEE Project is a joint project between Northwestern University + * and the University of New Mexico. You can find out more at + * http://www.v3vee.org + * + * Copyright (c) 2008, Jack Lange + * Copyright (c) 2008, The V3VEE Project + * All rights reserved. + * + * Author: Jack Lange + * + * This is free software. You are permitted to use, + * redistribute, and modify it as specified in the file "V3VEE_LICENSE". + */ + + #include #include @@ -6,7 +26,9 @@ struct vm_device * allocate_device() { struct vm_device * dev = NULL; - V3_Malloc(struct vm_device *, dev, sizeof(struct vm_device)); + dev = (struct vm_device*)V3_Malloc(sizeof(struct vm_device)); + + V3_ASSERT(dev != NULL); dev->ops = NULL; memset(dev->name, 0, 32);