Added per-task ipc flags checking instead of the active task flags.

Previously during ipc copy, only the currently active task flags were
checked. This means the flags of whoever doing the actual copy was used
in the ipc. Now flags are stored in the ktcb and checked by the copy routine.

Current use of the flags is to determine short/full/extended ipc.
This commit is contained in:
Bahadir Balban
2009-05-28 11:50:39 +03:00
parent 53310aa31b
commit b977e6597e
6 changed files with 88 additions and 52 deletions

View File

@@ -19,7 +19,7 @@ void wait_pager(l4id_t partner)
for (int i = 0; i < 6; i++)
write_mr(i, i);
l4_send(partner, L4_IPC_TAG_SYNC);
printf("Pager synced with us.\n");
// printf("Pager synced with us.\n");
}
pid_t parent_of_all;
@@ -51,8 +51,8 @@ void main(void)
if (parent_of_all == getpid())
ipc_extended_test();
exectest();
else
exectest();
while (1)
wait_pager(0);