mirror of
https://github.com/drasko/codezero.git
synced 2026-01-30 19:53:14 +01:00
Code that compiles until initialization of containers and pagers.
This commit is contained in:
@@ -3,5 +3,21 @@
|
||||
*
|
||||
* Copyright (C) 2009 Bahadir Balban
|
||||
*/
|
||||
#include <l4/generic/resource.h>
|
||||
#include <l4/generic/capability.h>
|
||||
|
||||
struct capability *capability_create(void)
|
||||
{
|
||||
struct capability *cap = alloc_capability();
|
||||
|
||||
capability_init(cap);
|
||||
|
||||
return cap;
|
||||
}
|
||||
|
||||
void capability_init(struct capability *cap)
|
||||
{
|
||||
cap->capid = id_new(&kernel_container.capability_ids);
|
||||
link_init(&cap->list);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user