]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Implement __NR_iopl (change I/O privilege level). I suspect this is
authorJulian Seward <jseward@acm.org>
Tue, 20 Aug 2002 18:09:15 +0000 (18:09 +0000)
committerJulian Seward <jseward@acm.org>
Tue, 20 Aug 2002 18:09:15 +0000 (18:09 +0000)
pretty useless unless the x86 IN/OUT insns are also implemented, but hey.

MERGE TO HEAD

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@606

vg_syscall_mem.c

index 580f6af3504c6e8b6b16ea64b12bfa4d445a6d4d..eadfaeb632909006def5a45675a25171101d8b25 100644 (file)
@@ -417,6 +417,15 @@ void VG_(perform_assumed_nonblocking_syscall) ( ThreadId tid )
 
       /* !!!!!!!!!! New, untested syscalls !!!!!!!!!!!!!!!!!!!!! */
 
+#     if defined(__NR_iopl)
+      case __NR_iopl: /* syscall 110 */
+         /* int iopl(int level); */
+         if (VG_(clo_trace_syscalls))
+            VG_(printf)("iopl ( %d )\n", arg1);
+         KERNEL_DO_SYSCALL(tid,res);
+         break;
+#     endif
+
 #     if defined(__NR_getxattr)
       case __NR_getxattr: /* syscall 229 */
          /* ssize_t getxattr (const char *path, const char* name,