mirror of
https://github.com/drasko/codezero.git
synced 2026-01-26 17:53:14 +01:00
swapped write_mr() arguments.
write_mr() now works as write_mr(mr_offset, mr_val), which makes sense.
This commit is contained in:
@@ -10,7 +10,7 @@ static inline unsigned int read_mr(int offset)
|
||||
return __L4_ARM_Utcb()->mr[offset];
|
||||
}
|
||||
|
||||
static inline void write_mr(unsigned int val, unsigned int offset)
|
||||
static inline void write_mr(unsigned int offset, unsigned int val)
|
||||
{
|
||||
__L4_ARM_Utcb()->mr[offset] = val;
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ static inline l4id_t l4_get_sender(void)
|
||||
|
||||
static inline void l4_set_sender(l4id_t id)
|
||||
{
|
||||
write_mr((unsigned int)id, MR_SENDER);
|
||||
write_mr(MR_SENDER, (unsigned int)id);
|
||||
}
|
||||
|
||||
static inline unsigned int l4_get_tag(void)
|
||||
@@ -49,7 +49,7 @@ static inline unsigned int l4_get_tag(void)
|
||||
|
||||
static inline void l4_set_tag(unsigned int tag)
|
||||
{
|
||||
write_mr(tag, MR_TAG);
|
||||
write_mr(MR_TAG, tag);
|
||||
}
|
||||
|
||||
static inline l4id_t self_tid(void)
|
||||
|
||||
Reference in New Issue
Block a user