mirror of
https://github.com/drasko/codezero.git
synced 2026-02-23 07:13:15 +01:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user