mirror of
https://github.com/drasko/codezero.git
synced 2026-11-24 09:53:53 +01:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user