mirror of
https://github.com/drasko/codezero.git
synced 2026-01-12 10:53:16 +01:00
Lots of polishing, organizational changes, bug fixes, error handling etc. are introduced. COPY and NEW space thread creation are allowed but not thoroughly tested yet. It seems they will work best if the lib supports utcb virtual range management through the mapping.
18 lines
353 B
C
18 lines
353 B
C
/*
|
|
* UTCB handling helper routines.
|
|
*
|
|
* Copyright (C) 2009 B Labs Ltd.
|
|
*/
|
|
#ifndef __LIB_UTCB_H__
|
|
#define __LIB_UTCB_H__
|
|
|
|
#include <tcb.h>
|
|
|
|
/* Checks if l4_set_stack_params is called. */
|
|
#define IS_UTCB_SETUP() (lib_utcb_range_size)
|
|
|
|
unsigned long get_utcb_addr(struct tcb *task);
|
|
int delete_utcb_addr(struct tcb *task);
|
|
|
|
#endif /* __LIB_UTCB_H__ */
|