Files
codezero/tasks/libl4/include/l4lib/arch-arm/message.h
Bahadir Balban 0c7d2bbfd1 swapped write_mr() arguments.
write_mr() now works as write_mr(mr_offset, mr_val), which makes sense.
2008-02-09 15:57:44 +00:00

27 lines
708 B
C

#ifndef __ARM_MESSAGE_H__
#define __ARM_MESSAGE_H__
#include <l4lib/types.h>
#include <l4lib/arch/utcb.h>
/* Functions to read/write utcb registers */
static inline unsigned int read_mr(int offset)
{
return __L4_ARM_Utcb()->mr[offset];
}
static inline void write_mr(unsigned int offset, unsigned int val)
{
__L4_ARM_Utcb()->mr[offset] = val;
}
/* Tag definitions */
#define L4_TAG_PFLAG (1 << 12) /* Propagation */
#define L4_TAG_NFLAG (1 << 13) /* Notify */
#define L4_TAG_RFLAG (1 << 14) /* Block-on-receive */
#define L4_TAG_SFLAG (1 << 15) /* Block-on-send */
#define L4_TAG_XFLAG (1 << 14) /* Crosscall (inter-cpu ipc) */
#define L4_TAG_EFLAG (1 << 15) /* Error */
#endif /* __ARM_MESSAGE_H__ */