* [Qemu-devel] [PATCH] syscall mincore
@ 2007-02-19 13:23 Kirill A. Shutemov
0 siblings, 0 replies; only message in thread
From: Kirill A. Shutemov @ 2007-02-19 13:23 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1.1: Type: text/plain, Size: 46 bytes --]
Patch from Debian patchset in the attachment.
[-- Attachment #1.2: 31_syscall_mincore.patch --]
[-- Type: text/plain, Size: 581 bytes --]
--- linux-user/syscall.c.orig 2006-11-05 07:07:19.000000000 +0200
+++ linux-user/syscall.c 2006-11-05 07:07:25.000000000 +0200
@@ -3856,7 +3863,9 @@ long do_syscall(void *cpu_env, int num,
goto unimplemented;
#ifdef TARGET_NR_mincore
case TARGET_NR_mincore:
- goto unimplemented;
+ page_unprotect_range((void*)arg3, ((size_t)arg2 + TARGET_PAGE_SIZE - 1) / TARGET_PAGE_SIZE);
+ ret = get_errno(mincore((void*)arg1, (size_t)arg2, (unsigned char*)arg3));
+ break;
#endif
#ifdef TARGET_NR_madvise
case TARGET_NR_madvise:
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-02-19 14:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-19 13:23 [Qemu-devel] [PATCH] syscall mincore Kirill A. Shutemov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).