mirror of
https://github.com/drasko/codezero.git
synced 2026-01-29 11:13:14 +01:00
Modified ipc handling so that from now on the kernel inspects and sets the sender id if the receiver is receiving from L4_ANYTHREAD. This posed a security problem since the receiver could not trust the sender for sender information.
23 lines
394 B
C
23 lines
394 B
C
/*
|
|
* 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__ */
|