Displaying 4 results from an estimated 4 matches for "vm86_struct".
2004 Jan 24
2
mmap and getpagesize
...klibc. The code I am working from calls INT 113 directly. It would
probably be cleaner to do this through a library call that automatically called
the x86 emulator on other architectures.
I'm able to compile with klibc now. Next I need to make sure everything works.
static int vm86_rep(struct vm86_struct *ptr)
{
int __res;
__asm__ __volatile__("int $0x80\n":"=a"(__res):"a"((int) 113), "b"((struct
vm86_struct *) ptr));
if ((__res) < 0) {
errno = -__res;
__res = -1;
} else
errno = 0;
return __res;
}
=====
Jon Smirl
jonsmirl@yahoo.com
_______...
2016 Apr 13
0
[PATCH 1/1] x32 support
...Low-level I/O (generally architecture-specific);
*/
-<i386,x86_64> int iopl(int);
-<i386,x86_64> int ioperm(unsigned long, unsigned long, int);
+<i386,x86_64,x32> int iopl(int);
+<i386,x86_64,x32> int ioperm(unsigned long, unsigned long, int);
<i386> int vm86(struct vm86_struct *);
/*
diff --git a/usr/klibc/arch/x32/MCONFIG b/usr/klibc/arch/x32/MCONFIG
new file mode 100644
index 0000000..7572340
--- /dev/null
+++ b/usr/klibc/arch/x32/MCONFIG
@@ -0,0 +1,39 @@
+# -*- makefile -*-
+#
+# arch/x32/MCONFIG
+#
+# Special rules for this architecture. Note that this is actually...
2006 Jun 26
0
[klibc 24/43] i386 support for klibc
...OFTWARE OR THE USE OR
+ * OTHER DEALINGS IN THE SOFTWARE.
+ *
+ * ----------------------------------------------------------------------- */
+
+/*
+ * sys/vm86.h for i386
+ */
+
+#ifndef _SYS_VM86_H
+#define _SYS_VM86_H 1
+
+#include <asm/vm86.h>
+
+/* Actual system call */
+int vm86(struct vm86_struct *);
+
+#endif
diff --git a/usr/klibc/arch/i386/MCONFIG b/usr/klibc/arch/i386/MCONFIG
new file mode 100644
index 0000000..e173266
--- /dev/null
+++ b/usr/klibc/arch/i386/MCONFIG
@@ -0,0 +1,33 @@
+# -*- makefile -*-
+#
+# arch/i386/MCONFIG
+#
+# Special rules for this architecture. Note that this is...
2006 Jun 28
35
[klibc 00/31] klibc as a historyless patchset (updated and reorganized)
I have updated the klibc patchset based on feedback received. In
particular, the patchset has been reorganized so as not to break
git-bisect.
Additionally, this updates the patch base to 2.6.17-git12
(d38b69689c349f35502b92e20dafb30c62d49d63) and klibc 1.4.8; the main
difference on the klibc side is removal of obsolete code.
This is also available as a git tree at: