mirror of
https://github.com/drasko/codezero.git
synced 2026-01-20 23:03:16 +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:
@@ -207,13 +207,13 @@ void send_task_data(l4id_t requester)
|
||||
}
|
||||
|
||||
/* First word is total number of tcbs */
|
||||
write_mr(tcb_head.total, L4SYS_ARG0);
|
||||
write_mr(L4SYS_ARG0, tcb_head.total);
|
||||
|
||||
/* Write each tcb's tid */
|
||||
li = 0;
|
||||
list_for_each_entry(t, &tcb_head.list, list) {
|
||||
BUG_ON(li >= MR_USABLE_TOTAL);
|
||||
write_mr(t->tid, L4SYS_ARG1 + li);
|
||||
write_mr(L4SYS_ARG1 + li, t->tid);
|
||||
li++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user