mirror of
https://github.com/drasko/codezero.git
synced 2026-02-28 01:33:13 +01:00
Fixed libposix munmap call where we used the MMAP tag.
This commit is contained in:
@@ -78,7 +78,7 @@ int l4_munmap(void *start, size_t length)
|
||||
write_mr(L4SYS_ARG1, length);
|
||||
|
||||
/* Call pager with MMAP request. */
|
||||
if ((err = l4_sendrecv(PAGER_TID, PAGER_TID, L4_IPC_TAG_MMAP)) < 0) {
|
||||
if ((err = l4_sendrecv(PAGER_TID, PAGER_TID, L4_IPC_TAG_MUNMAP)) < 0) {
|
||||
printf("%s: IPC Error: %d.\n", __FUNCTION__, err);
|
||||
return err;
|
||||
}
|
||||
@@ -116,7 +116,7 @@ int l4_msync(void *start, size_t length, int flags)
|
||||
}
|
||||
/* Check if syscall itself was successful */
|
||||
if ((errno = l4_get_retval()) < 0) {
|
||||
printf("%s: MUNMAP Error: %d.\n", __FUNCTION__, errno);
|
||||
printf("%s: MSYNC Error: %d.\n", __FUNCTION__, errno);
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user