Removed kmalloc. Initialization path resolved, almost done.

This commit is contained in:
Bahadir Balban
2009-08-06 14:15:39 +03:00
parent 519bfba8c7
commit e329a7c91a
13 changed files with 104 additions and 91 deletions

View File

@@ -11,7 +11,6 @@
#include <l4/api/errno.h>
#include <l4/lib/bit.h>
#include <l4/lib/math.h>
#include <l4/generic/kmalloc.h>
#include INC_API(syscall.h)
#include INC_GLUE(message.h)
#include INC_GLUE(ipc.h)

View File

@@ -8,7 +8,6 @@
#include <l4/lib/printk.h>
#include <l4/generic/scheduler.h>
#include <l4/generic/container.h>
#include <l4/generic/kmalloc.h>
#include <l4/generic/tcb.h>
#include <l4/api/kip.h>
#include <l4/api/errno.h>
@@ -79,7 +78,7 @@ struct mutex_queue *mutex_control_create(unsigned long mutex_physical)
struct mutex_queue *mutex_queue;
/* Allocate the mutex queue structure */
if (!(mutex_queue = kzalloc(sizeof(struct mutex_queue))))
if (!(mutex_queue = alloc_user_mutex()))
return 0;
/* Init and return */
@@ -98,7 +97,7 @@ void mutex_control_delete(struct mutex_queue *mq)
BUG_ON(!list_empty(&mq->wqh_contenders.task_list));
BUG_ON(!list_empty(&mq->wqh_holders.task_list));
kfree(mq);
free_user_mutex(mq);
}
/*