Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Cc: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
*
*/
-
+#include <linux/vmalloc.h>
#include "include/logging.h"
#include "VmbusPrivate.h"
WriteMsr(HV_X64_MSR_HYPERCALL, hypercallMsr.AsUINT64);
}
- VirtualFree(virtAddr);
+ vfree(virtAddr);
}
ret = -1;
DPRINT_EXIT(VMBUS);
{
hypercallMsr.AsUINT64 = 0;
WriteMsr(HV_X64_MSR_HYPERCALL, hypercallMsr.AsUINT64);
- VirtualFree(gHvContext.HypercallPage);
+ vfree(gHvContext.HypercallPage);
gHvContext.HypercallPage = NULL;
}
}
/* Osd routines */
extern void* VirtualAllocExec(unsigned int size);
-extern void VirtualFree(void* VirtAddr);
extern void* PageAlloc(unsigned int count);
extern void PageFree(void* page, unsigned int count);
#endif
}
-void VirtualFree(void* VirtAddr)
-{
- return vfree(VirtAddr);
-}
-
void* PageAlloc(unsigned int count)
{
void *p;