$(NASM) $(NASM_VMM_OPTS) $< -o devices/$*.o
net/%.o : net/%.c
- $(TARGET_CC) -c $(CC_GENERAL_OPTS) $(CC_VMM_OPTS) $(CC_USER_OPTS) $< -o net/$*.o
+ $(TARGET_CC) -c $(CC_GENERAL_OPTS) $(CC_USER_OPTS) $< -o net/$*.o
# ----------------------------------------------------------------------
# Targets -
#include <geekos/synch.h>
#include <geekos/kthread.h>
-#include <palacios/vmm.h>
#include <geekos/debug.h>
+#include <geekos/malloc.h>
#include "lwip/sys.h"
#include "lwip/opt.h"
{
struct sys_thread *thread;
- thread = (struct sys_thread *)V3_Malloc(sizeof(struct sys_thread));
+ thread = (struct sys_thread *)Malloc(sizeof(struct sys_thread));
if (thread != NULL) {
//pthread_mutex_lock(&threads_mutex);
struct Kernel_Thread *tmp;
struct sys_thread *st = NULL;
- //tmp = (struct Kernel_Thread *)V3_Malloc(sizeof(struct Kernel_Thread));
+ //tmp = (struct Kernel_Thread *)Malloc(sizeof(struct Kernel_Thread));
/* code = pthread_create(&tmp,
NULL,
{
struct sys_mbox *mbox;
- mbox = (struct sys_mbox *)V3_Malloc(sizeof(struct sys_mbox));
+ mbox = (struct sys_mbox *)Malloc(sizeof(struct sys_mbox));
if (mbox != NULL) {
mbox->first = mbox->last = 0;
mbox->mail = sys_sem_new_(0);
mbox->mail = mbox->mutex = NULL;
/* LWIP_DEBUGF("sys_mbox_free: mbox 0x%lx\n", mbox); */
- V3_Free(mbox);
+ Free(mbox);
}
}
/*-----------------------------------------------------------------------------------*/
{
struct sys_sem *sem;
- sem = (struct sys_sem *)V3_Malloc(sizeof(struct sys_sem));
+ sem = (struct sys_sem *)Malloc(sizeof(struct sys_sem));
if (sem != NULL) {
sem->c = count;
//pthread_mutex_destroy(&(sem->mutex));
Mutex_Destroy(&(sem->mutex));
- V3_Free(sem);
+ Free(sem);
}
#if 0