diff --git a/develop/libx86/libx86-1.1-linux-2.6.26.patch b/develop/libx86/libx86-1.1-linux-2.6.26.patch new file mode 100644 index 000000000..bbc7d0135 --- /dev/null +++ b/develop/libx86/libx86-1.1-linux-2.6.26.patch @@ -0,0 +1,37 @@ +# --- SDE-COPYRIGHT-NOTE-BEGIN --- +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# +# Filename: package/.../libx86/libx86-1.1-linux-2.6.26.patch +# Copyright (C) 2011 The OpenSDE Project +# +# More information can be found in the files COPYING and README. +# +# This patch file is dual-licensed. It is available under the license the +# patched project is licensed under, as long as it is an OpenSource license +# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms +# of the GNU General Public License as published by the Free Software +# Foundation; either version 2 of the License, or (at your option) any later +# version. +# --- SDE-COPYRIGHT-NOTE-END --- + +--- libx86-1.1/lrmi.c.orig 2011-05-12 10:33:58.664002073 +0200 ++++ libx86-1.1/lrmi.c 2011-05-12 10:34:48.996002074 +0200 +@@ -55,6 +55,18 @@ + #include "x86-common.h" + + #if defined(__linux__) ++#ifndef TF_MASK ++#define TF_MASK X86_EFLAGS_TF ++#endif ++#ifndef IF_MASK ++#define IF_MASK X86_EFLAGS_IF ++#endif ++#ifndef IOPL_MASK ++#define IOPL_MASK X86_EFLAGS_IOPL ++#endif ++#ifndef VIF_MASK ++#define VIF_MASK X86_EFLAGS_VIF ++#endif + #define DEFAULT_VM86_FLAGS (IF_MASK | IOPL_MASK) + #elif defined(__NetBSD__) || defined(__FreeBSD__) + #define DEFAULT_VM86_FLAGS (PSL_I | PSL_IOPL) diff --git a/develop/libx86/libx86.cache b/develop/libx86/libx86.cache new file mode 100644 index 000000000..f6be8338a --- /dev/null +++ b/develop/libx86/libx86.cache @@ -0,0 +1,21 @@ + +[TIMESTAMP] 1305189526 Thu May 12 10:38:46 2011 +[BUILDTIME] 0 (5) +[SIZE] 0.03 MB, 10 files + +[DEP] bash +[DEP] binutils +[DEP] bzip2 +[DEP] coreutils +[DEP] diffutils +[DEP] fhs +[DEP] findutils +[DEP] gcc +[DEP] glibc +[DEP] grep +[DEP] linux-header +[DEP] make +[DEP] patch +[DEP] sed +[DEP] sysfiles +[DEP] tar diff --git a/develop/libx86/libx86.desc b/develop/libx86/libx86.desc new file mode 100644 index 000000000..a670dfc9f --- /dev/null +++ b/develop/libx86/libx86.desc @@ -0,0 +1,40 @@ +[COPY] --- SDE-COPYRIGHT-NOTE-BEGIN --- +[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch. +[COPY] +[COPY] Filename: package/.../libx86/libx86.desc +[COPY] Copyright (C) 2011 The OpenSDE Project +[COPY] +[COPY] More information can be found in the files COPYING and README. +[COPY] +[COPY] This program is free software; you can redistribute it and/or modify +[COPY] it under the terms of the GNU General Public License as published by +[COPY] the Free Software Foundation; version 2 of the License. A copy of the +[COPY] GNU General Public License can be found in the file COPYING. +[COPY] --- SDE-COPYRIGHT-NOTE-END --- + +[I] A hardware-independent library for executing real-mode x86 code + +[T] libx86 provides the capability to make real-mode x86 BIOS calls from +[T] userland. lrmi provides a simple interface to this for x86 machines, but +[T] this doesn't help on other platforms. libx86 provides the lrmi interface, +[T] but will also run on platforms such as amd64 and alpha. +[T] On x86 platforms, libx86 will use the vm86 interface provided by most +[T] modern kernels in order to execute code. On non-x86 platforms, an interface +[T] layer is provided to allow x86emu to be used to execute lrmi function calls. +[T] The API is identical in both cases, meaning that applications can be written +[T] without having to care about what's going on behind the scenes. + +[U] http://www.codon.org.uk/~mjg59/libx86/ + +[A] Matthew Garrett +[A] Jonathan McDowell +[M] The OpenSDE Community + +[C] extra/development + +[L] OpenSource +[S] Stable +[V] 1.1 +[P] X -----5---9 200.000 + +[D] 758380411 libx86-1.1.tar.gz http://www.codon.org.uk/~mjg59/libx86/downloads/