mirror of
https://github.com/drasko/codezero.git
synced 2026-02-27 01:03:14 +01:00
Code that compiles until initialization of containers and pagers.
This commit is contained in:
@@ -4,7 +4,17 @@
|
||||
#include <l4/lib/bit.h>
|
||||
#include <l4/lib/spinlock.h>
|
||||
|
||||
/* One page size minus the structure fields */
|
||||
#define CONFIG_MAX_SYSTEM_IDS (1023*32)
|
||||
#define SYSTEM_IDS_MAX (CONFIG_MAX_SYSTEM_IDS >> 5)
|
||||
|
||||
struct id_pool {
|
||||
struct spinlock lock;
|
||||
int nwords;
|
||||
u32 bitmap[SYSTEM_IDS_MAX];
|
||||
};
|
||||
|
||||
struct id_pool_variable {
|
||||
struct spinlock lock;
|
||||
int nwords;
|
||||
u32 bitmap[];
|
||||
|
||||
Reference in New Issue
Block a user