mirror of
https://github.com/drasko/codezero.git
synced 2026-01-12 10:53:16 +01:00
UTCB support has beed added. It has the same drawback as in the stack support: the area in question has to be already mapped-in. There are also some minor fixes for the stack support and the utcb common helper routines.
26 lines
566 B
C
26 lines
566 B
C
/*
|
|
* UTCB handling common helper routines
|
|
*
|
|
* Copyright (C) 2009 B Labs Ltd.
|
|
*/
|
|
#ifndef __UTCB_COMMON_H__
|
|
#define __UTCB_COMMON_H__
|
|
|
|
#include <l4/lib/list.h>
|
|
|
|
struct utcb_desc {
|
|
struct link list;
|
|
unsigned long utcb_base;
|
|
struct id_pool *slots;
|
|
};
|
|
|
|
int utcb_pool_init(unsigned long utcb_start, unsigned long utcb_end);
|
|
|
|
unsigned long utcb_new_slot(struct utcb_desc *desc);
|
|
int utcb_delete_slot(struct utcb_desc *desc, unsigned long address);
|
|
|
|
struct utcb_desc *utcb_new_desc(void);
|
|
int utcb_delete_desc(struct utcb_desc *desc);
|
|
|
|
#endif /* __UTCB_COMMON_H__ */
|