Fixed the issue that page copy offsets were not correct.

When copying file pages back and forth, we need both dst and src
offsets since the cursor offset and read/write buffer page offsets
are different. This is now fixed.

Also done some mods to close().
This commit is contained in:
Bahadir Balban
2008-04-25 17:07:49 +01:00
parent ba725168a0
commit 488d9e6271
2 changed files with 27 additions and 8 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ static inline int l4_close(int fd)
write_mr(L4SYS_ARG0, fd);
/* Call pager with close() request. Check ipc error. */
if ((fd = l4_sendrecv(VFS_TID, VFS_TID, L4_IPC_TAG_CLOSE)) < 0) {
if ((fd = l4_sendrecv(PAGER_TID, PAGER_TID, L4_IPC_TAG_CLOSE)) < 0) {
printf("%s: L4 IPC Error: %d.\n", __FUNCTION__, fd);
return fd;
}