qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Carlo Marcelo Arenas Belon <carenas@sajinet.com.pe>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] tests/runcom.c: use sys/vm86.h definition of vm86 system call
Date: Mon, 12 Nov 2007 01:48:16 -0600	[thread overview]
Message-ID: <20071112074816.GA15570@tapir> (raw)

The following patch fixes a compilation/type mismatch issue for runcom by
removing the _syscall2 macro call (deprecated since kernel 2.6.18) and using
the definition from <sys/vm86.h> for the vm86 system call instead.

Carlo
---
Index: tests/runcom.c
===================================================================
RCS file: /sources/qemu/qemu/tests/runcom.c,v
retrieving revision 1.5
diff -u -r1.5 runcom.c
--- tests/runcom.c	17 Sep 2007 08:09:54 -0000	1.5
+++ tests/runcom.c	12 Nov 2007 07:30:50 -0000
@@ -12,6 +12,7 @@
 
 #include <linux/unistd.h>
 #include <asm/vm86.h>
+#include <sys/vm86.h>
 
 //#define SIGTEST
 
@@ -21,8 +22,6 @@
 	return (type) (res); \
 } while (0)
 
-_syscall2(int, vm86, int, func, struct vm86plus_struct *, v86)
-
 #define COM_BASE_ADDR    0x10100
 
 void usage(void)

                 reply	other threads:[~2007-11-12  7:43 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20071112074816.GA15570@tapir \
    --to=carenas@sajinet.com.pe \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).