Full utcb copying partially works now.

This commit is contained in:
Bahadir Balban
2009-05-19 11:26:45 +03:00
parent b950ec323d
commit 3bbbcdfefa
5 changed files with 49 additions and 5 deletions

View File

@@ -40,11 +40,9 @@ int ipc_full_copy(struct ktcb *to, struct ktcb *from)
int ret;
/* Check that utcb memory accesses won't fault us */
if ((ret = check_access(to->utcb_address, UTCB_SIZE,
MAP_SVC_RW_FLAGS, 0)) < 0)
if ((ret = tcb_check_and_lazy_map_utcb(to)) < 0)
return ret;
if ((ret = check_access(to->utcb_address, UTCB_SIZE,
MAP_SVC_RW_FLAGS, 0)) < 0)
if ((ret = tcb_check_and_lazy_map_utcb(from)) < 0)
return ret;
/* Directly copy from one utcb to another */