Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Pol Vinogradov (f3db164e554f603afae8bbb512ead374333d54aa)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Pol Vinogradov <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Pol Vinogradov (f3db164e554f603afae8bbb512ead374333d54aa)
  • Date: Wed, 1 Apr 2009 13:47:39 -0500

GIT changes to master grimoire by Pol Vinogradov <vin.public AT gmail.com>:

libs/libx86/DETAILS | 15 ++++++++++++---
libs/libx86/HISTORY | 4 ++++
libs/libx86/defines.patch | 8 ++++----
3 files changed, 20 insertions(+), 7 deletions(-)

New commits:
commit f3db164e554f603afae8bbb512ead374333d54aa
Author: Pol Vinogradov <vin.public AT gmail.com>
Commit: Pol Vinogradov <vin.public AT gmail.com>

libs/libx86: fixed patch and formatting

diff --git a/libs/libx86/DETAILS b/libs/libx86/DETAILS
index c022986..9276e70 100755
--- a/libs/libx86/DETAILS
+++ b/libs/libx86/DETAILS
@@ -10,9 +10,18 @@ SOURCE_DIRECTORY=$BUILD_DIRECTORY/$SPELL-$VERSION
KEYWORDS="lib x86"
SHORT='a hardware-independent library for executing real-mode x86
code'
cat << EOF
-It's often useful to be able to make real-mode x86 BIOS calls from userland.
lrmi provides a simple interface to this for x86 machines, but this doesn't
help on other platforms. libx86 provides the lrmi interface, but will also
run on platforms such as amd64 and alpha.
+It's often useful to be able to make real-mode x86 BIOS calls from userland.
+lrmi provides a simple interface to this for x86 machines, but this doesn't
help
+on other platforms. libx86 provides the lrmi interface, but will also run on
+platforms such as amd64 and alpha.

-libx86 is built on top of two bodies of code - lrmi and x86emu. x86emu is a
generic x86 emulator originally provided by Scitech and now maintained as
part of the X.org distribution.
+libx86 is built on top of two bodies of code - lrmi and x86emu. x86emu is
+a generic x86 emulator originally provided by Scitech and now maintained as
+part of the X.org distribution.

-On x86 platforms, libx86 will use the vm86 interface provided by most modern
kernels in order to execute code. On non-x86 platforms, an interface layer is
provided to allow x86emu to be used to execute lrmi function calls. The API
is identical in both cases, meaning that applications can be written without
having to care about what's going on behind the scenes.
+On x86 platforms, libx86 will use the vm86 interface provided by most modern
+kernels in order to execute code. On non-x86 platforms, an interface layer
+is provided to allow x86emu to be used to execute lrmi function calls. The
+API is identical in both cases, meaning that applications can be written
+without having to care about what's going on behind the scenes.
EOF
diff --git a/libs/libx86/HISTORY b/libs/libx86/HISTORY
index 781ac0b..8eb73b4 100644
--- a/libs/libx86/HISTORY
+++ b/libs/libx86/HISTORY
@@ -1,3 +1,7 @@
+2009-04-01 Pol Vinogradov <vin.public AT gmail.com>
+ * DETAILS: fixed formatting
+` * defines.patch: fixed patch itself
+
2009-03-12 Julien "_kaze_" ROZO <julien AT rozo.org>
* PRE_BUILD, defines.patch: added to fix compilation issue with
latest kernel
headers when not using x86emu
diff --git a/libs/libx86/defines.patch b/libs/libx86/defines.patch
index 4e12a29..de01d63 100644
--- a/libs/libx86/defines.patch
+++ b/libs/libx86/defines.patch
@@ -1,8 +1,8 @@
---- libx86-1.1.orig/lrmi.c 2009-03-12 14:27:01.000000000 +0100
-+++ libx86-1.1/lrmi.c 2009-03-12 14:27:35.000000000 +0100
+--- libx86-1.1.orig/lrmi.c 2009-04-01 23:15:04.000000000 +0500
++++ libx86-1.1/lrmi.c 2009-04-01 23:12:26.000000000 +0500
@@ -55,6 +55,18 @@
#include "x86-common.h"
-
+
#if defined(__linux__)
+#ifndef TF_MASK
+#define TF_MASK X86_EFLAGS_TF
@@ -16,6 +16,6 @@
+#ifndef VIF_MASK
+#define VIF_MASK X86_EFLAGS_VIF
+#endif
- #define DEFAULT_VM86_FLAGS (IF_MASK | IOPL_MASK)
+ #define DEFAULT_VM86_FLAGS (IF_MASK | IOPL_MASK)
#elif defined(__NetBSD__) || defined(__FreeBSD__)
#define DEFAULT_VM86_FLAGS (PSL_I | PSL_IOPL)




Archive powered by MHonArc 2.6.24.

Top of Page