mirror of
https://github.com/drasko/codezero.git
synced 2026-01-12 10:53:16 +01:00
Merged some libl4 utcb headers, moved mr defs to kernel message.h
Headers 3 headers related to message registers and utcbs are now merged under utcb.h in libl4. Some message register definitions used by the kernel are now moved into kernel's glue/message.h. This avoids the duplication of same definitions. Also the total number of mregs are now determined by arch-specific kernel header, which is good.
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
#include <l4/generic/pgalloc.h>
|
||||
#include INC_GLUE(memory.h)
|
||||
#include INC_GLUE(syscall.h)
|
||||
#include INC_GLUE(utcb.h)
|
||||
#include INC_GLUE(message.h)
|
||||
#include INC_SUBARCH(mm.h)
|
||||
|
||||
enum task_state {
|
||||
|
||||
19
include/l4/glue/arm/message.h
Normal file
19
include/l4/glue/arm/message.h
Normal file
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
* Userspace thread control block
|
||||
*
|
||||
* Copyright (C) 2007 Bahadir Balban
|
||||
*/
|
||||
#ifndef __GLUE_ARM_MESSAGE_H__
|
||||
#define __GLUE_ARM_MESSAGE_H__
|
||||
|
||||
#define MR_TOTAL 6
|
||||
#define MR_TAG 0 /* Contains the purpose of message */
|
||||
#define MR_SENDER 1 /* For anythread receivers to discover sender */
|
||||
#define MR_RETURN 0 /* Contains the posix return value. */
|
||||
|
||||
/* These define the mr start - end range that isn't used by userspace syslib */
|
||||
#define MR_UNUSED_START 2 /* The first mr that's not used by syslib.h */
|
||||
#define MR_UNUSED_TOTAL (MR_TOTAL - MR_UNUSED_START)
|
||||
#define MR_USABLE_TOTAL MR_UNUSED_TOTAL
|
||||
|
||||
#endif /* __GLUE_ARM_MESSAGE_H__ */
|
||||
@@ -1,22 +0,0 @@
|
||||
/*
|
||||
* Userspace thread control block
|
||||
*
|
||||
* Copyright (C) 2007 Bahadir Balban
|
||||
*/
|
||||
#ifndef __GLUE_ARM_UTCB_H__
|
||||
#define __GLUE_ARM_UTCB_H__
|
||||
|
||||
#define MR_TOTAL 6
|
||||
|
||||
#define MR_TAG 0
|
||||
#define MR_SENDER 1
|
||||
#define MR_UNUSED_START 2
|
||||
|
||||
/* Compact utcb for now! 8-) */
|
||||
struct utcb {
|
||||
u32 mr[MR_TOTAL];
|
||||
u32 global_id; /* Thread id */
|
||||
u32 usr_handle; /* Use as TLS */
|
||||
};
|
||||
|
||||
#endif /* __GLUE_ARM_UTCB_H__ */
|
||||
Reference in New Issue
Block a user