bolle | 22 Dec 11:34 2015

Is DOSEMU2 intended running on kernels like 3.2 ?

Hello

I've compiled the DOSEMU2 devel branch (2.0pre4, 1893) on an Ubuntu 
12.04 LTS (x86 / 32-bit / PAE). This fails due to the usage of 
"X86_EFLAGS_FIXED" in the file "src/emu-i386/kvm.c".

I believe that the define of "X86_EFLAGS_FIXED" is missing in the kernel 
3.2 of my Ubuntu version. There has been a rename of "X86_EFLAGS_BIT1" 
to "X86_EFLAGS_FIXED" some time ago:

https://www.kernel.org/pub/linux/kernel/v3.0/ChangeLog-3.10.60

In the meantime, I added the following line to "kvm.c" and could compile 
successfully DOSEMU2:

#define X86_EFLAGS_FIXED                0x00000002

But I believe, this is NOT the right thing... DOSEMU2 runs, but I use 
"vm86" and not "kvm".

So, coming back to the subject of this message:

Is DOSEMU2 supposed to work on older Linux Kernels ? If not, then this 
message can be sent to device null.

Andreas

------------------------------------------------------------------------------
bolle | 22 Dec 09:52 2015

DOSEMU2 on this list

Hello all

Is this used for discusion about the DOSEMU_2_ too or is there a new one 
/ other location ?

Andreas

------------------------------------------------------------------------------
solarflow99 | 16 Sep 10:53 2015
Picon

Re: Issue with dosemu after upgrade to Fedora 22?

I suspect its just a bug with the 64 bit version, some programs,
usually games have experienced problems running in 64 bit.

On Wed, Sep 16, 2015 at 12:14 AM, Michael D. Setzer II
<mikes@...> wrote:
> On 15 Sep 2015 at 16:51, solarflow99 wrote:
>
> Date sent:              Tue, 15 Sep 2015 16:51:46 -0700
> Subject:                Re: [Dosemu-devel] Issue with dosemu after upgrade to
> Fedora 22?
> From:                   solarflow99 <solarflow99@...>
> To:                     "Michael D. Setzer II" <mikes@...>
> Copies to:              dosemu-devel <dosemu-devel@...>
>
>> is this 64 bit?  are you using the RPM?
>>
>
> This is the 64bit version on a Lenovo ThinkCenter I7 computer. Was working
> with the Fedora 21, but did the fedup update to Fedora 22, and if upgraded to
> the Fedora 22 rpm.  Changing the $_cpu_emu = "full" seems to have fixed it,
> but not sure what changed it no longer work. Could be the upgrade to 22, or
> it could just be the new kernels that 22 is not running. Tried the vm option,
> but it gave the same error, but changing to full worked.
>
> Did download and compile the dosemu2, but ran into some issues. Had to
> add bison and flex that was no problem, and it compiled and installed, but
> when I ran the dosemu, it was coming up with a message about no os found,
> and to install freedos. The freedos was already installed, and it was working
> with the regular dosemu to load and come up with the c: prompt, just the
> running of bc program caused it to get the error. Where the regular dosemu
(Continue reading)

Michael D. Setzer II | 15 Sep 15:52 2015
Picon

Issue with dosemu after upgrade to Fedora 22?

During my C++ course last semester I had used dosemu to show the 
students the old borland c++ compiler with linux using Fedora 21 and 
dosemu to run the bc program and it worked great. Updated to Fedora 22 
over the summer, and course wasn't offered this semester, but earlier today 
went in to check it out, and it kept crashing?

dosemu would start just fine, but when I ran the bc program it was giving this 
error?

ERROR: SS selector invalid: 0x002B, type=0 np=0

Tried a number of options in config file, but found that this one finally made it 
work again. 

$_cpu_emu = "full"

Not sure if it was a change to the Fedora 22, or the newer kernels or what. 
Tried a number of other options, but this was what stopped the error, and 
had the program come up. Went back to the original config file, and just 
changed this one to make sure that it was what made the difference.

+----------------------------------------------------------+
  Michael D. Setzer II -  Computer Science Instructor      
  Guam Community College  Computer Center                  
  mailto:mikes@...                            
  mailto:msetzerii@...
  http://www.guam.net/home/mikes
  Guam - Where America's Day Begins                        
  G4L Disk Imaging Project maintainer 
  http://sourceforge.net/projects/g4l/
(Continue reading)

Ryan C. Underwood | 18 Jan 19:35 2015
Picon

[PATCH] Retry opening MIDI output FIFO on writes.

From: "Ryan C. Underwood" <nemesis@...>

Now the user can start consuming MIDI data after dosemu has started,
instead of having to start over after realizing he forgot to start
his MIDI-consuming app.

Signed-off-by: Ryan C. Underwood <nemesis@...>
---
 src/plugin/midimisc/mid_o_pipe.c | 37 +++++++++++++++++++++++++++++++------
 1 file changed, 31 insertions(+), 6 deletions(-)

diff --git a/src/plugin/midimisc/mid_o_pipe.c b/src/plugin/midimisc/mid_o_pipe.c
index eb45f64..633e3eb 100644
--- a/src/plugin/midimisc/mid_o_pipe.c
+++ b/src/plugin/midimisc/mid_o_pipe.c
 <at>  <at>  -41,10 +41,16  <at>  <at>  static int midopipe_init(void)
     pipe_fd =
 	RPT_SYSCALL(open(name, O_WRONLY | O_CREAT | O_NONBLOCK, 0666));
     if (pipe_fd == -1) {
-	S_printf("%s: unable to open %s for writing: %s\n",
-		 midopipe_name, name, strerror(errno));
-	return 0;
+	int err = errno;
+	S_printf("%s: unable to open %s for writing (%s)%s\n", midopipe_name, name,
+	    strerror(errno), errno == ENXIO ? ", will continue trying" : "");
+	if (err == ENXIO) { /* no FIFO readers */
+	    return 1;
+	} else { /* some other problem */
+	   return 0;
+	}
(Continue reading)

Ryan C. Underwood | 18 Jan 19:26 2015
Picon

[PATCH] Add XRandR support; rework input grabbing. (v2)

From: Ryan Underwood <nemesis@...>

XRandR support is fully added and works properly in a multihead configuration
if the user's version is at least 1.2.  It works basically like the existing
XVidMode code and is preferred whenever it is available.  It will also properly
restore the dosemu window's position when exiting fullscreen mode.

Keyboard and mouse grabbing had to be reworked to account for multihead (e.g.,
fullscreen DOS window on one output but with the ability to use applications on
a different output).

Signed-off-by: Ryan C. Underwood <nemesis@...>
---
 configure               |  80 +++++++++++++-
 configure.ac            |  17 +++
 src/include/config.h.in |   3 +
 src/plugin/X/X.c        | 280 ++++++++++++++++++++++++++++++++++++++++--------
 4 files changed, 332 insertions(+), 48 deletions(-)

diff --git a/configure b/configure
index 1faf59f..bfa49e0 100755
--- a/configure
+++ b/configure
 <at>  <at>  -746,6 +746,7  <at>  <at>  with_slangdir
 with_x
 enable_mitshm
 enable_vidmode
+enable_xrandr
 enable_experimental
 enable_debug
(Continue reading)

Ryan C. Underwood | 18 Jan 19:09 2015
Picon

[PATCH] dosemu2: Add XRandR support; rework input grabbing

From: Ryan Underwood <nemesis@...>

XRandR support is fully added and works properly in a multihead configuration
if the user's version is at least 1.2.  It works basically like the existing
XVidMode code and is preferred whenever it is available.  It will also properly
restore the dosemu window's position when exiting fullscreen mode.

Keyboard and mouse grabbing had to be reworked to account for multihead (e.g.,
fullscreen DOS window on one output but with the ability to use applications on
a different output).

Signed-off-by: Ryan C. Underwood <nemesis@...>
---
 configure               |  80 +++++++++++++-
 configure.ac            |  17 +++
 src/include/config.h.in |   3 +
 src/plugin/X/X.c        | 280 ++++++++++++++++++++++++++++++++++++++++--------
 4 files changed, 332 insertions(+), 48 deletions(-)

diff --git a/configure b/configure
index 2d3dbac..2b1907d 100755
--- a/configure
+++ b/configure
 <at>  <at>  -749,6 +749,7  <at>  <at>  with_slangdir
 with_x
 enable_mitshm
 enable_vidmode
+enable_xrandr
 enable_experimental
 enable_debug
(Continue reading)

Ryan C. Underwood | 18 Jan 17:36 2015
Picon

[PATCH] Add XRandR support; rework input device grabbing.

From: "Ryan C. Underwood" <nemesis@...>

XRandR support is fully added and works properly in a multihead configuration
if the user's version is at least 1.2.  It works basically like the existing
XVidMode code and is preferred whenever it is available.  It will also properly
restore the dosemu window's position when exiting fullscreen mode.

Keyboard and mouse grabbing had to be reworked to account for multihead (e.g.,
fullscreen DOS window on one output but with the ability to use applications on
a different output).

Signed-off-by: Ryan C. Underwood <nemesis@...>
---
 configure.ac            |  17 +++
 src/include/config.h.in |   3 +
 src/plugin/X/X.c        | 275 ++++++++++++++++++++++++++++++++++++++++--------
 3 files changed, 252 insertions(+), 43 deletions(-)

diff --git a/configure.ac b/configure.ac
index a5b4df9..f444b31 100644
--- a/configure.ac
+++ b/configure.ac
 <at>  <at>  -376,6 +376,20  <at>  <at>  if test "$have_x" = "yes" ; then
                  [#include <X11/Xlib.h>])
     fi

+    AC_ARG_ENABLE(xrandr,
+              {  --disable-xrandr        do NOT use the XRandR extension])
+    if test "$enable_xrandr" != "no" ; then
+      AC_CHECK_LIB(Xrandr, XRRQueryVersion, enable_xrandr="yes", enable_xrandr="no")
(Continue reading)

Ryan C. Underwood | 18 Jan 07:18 2015
Picon

[PATCH] Add XRandR support; rework input device grabbing.

From: "Ryan C. Underwood" <nemesis@...>

XRandR support is fully added and works properly in a multihead configuration
if the user's version is at least 1.2.  It works basically like the existing
XVidMode code and is preferred whenever it is available.  It will also properly
restore the dosemu window's position when exiting fullscreen mode.

Keyboard and mouse grabbing had to be reworked to account for multihead (e.g.,
fullscreen DOS window on one output but with the ability to use applications on
a different output).

Signed-off-by: Ryan C. Underwood <nemesis@...>
---
 configure.ac            |  17 +++
 src/include/config.h.in |   3 +
 src/plugin/X/X.c        | 275 ++++++++++++++++++++++++++++++++++++++++--------
 3 files changed, 252 insertions(+), 43 deletions(-)

diff --git a/configure.ac b/configure.ac
index a5b4df9..f444b31 100644
--- a/configure.ac
+++ b/configure.ac
 <at>  <at>  -376,6 +376,20  <at>  <at>  if test "$have_x" = "yes" ; then
                  [#include <X11/Xlib.h>])
     fi

+    AC_ARG_ENABLE(xrandr,
+              {  --disable-xrandr        do NOT use the XRandR extension])
+    if test "$enable_xrandr" != "no" ; then
+      AC_CHECK_LIB(Xrandr, XRRQueryVersion, enable_xrandr="yes", enable_xrandr="no")
(Continue reading)

Ryan C. Underwood | 18 Jan 07:15 2015
Picon

[PATCH] Add XRandR support; rework input device grabbing.

From: "Ryan C. Underwood" <nemesis@...>

XRandR support is fully added and works properly in a multihead configuration
if the user's version is at least 1.2.  It works basically like the existing
XVidMode code and is preferred whenever it is available.  It will also properly
restore the dosemu window's position when exiting fullscreen mode.

Keyboard and mouse grabbing had to be reworked to account for multihead (e.g.,
fullscreen DOS window on one output but with the ability to use applications on
a different output).

Signed-off-by: Ryan C. Underwood <nemesis@...>
---
 configure.ac            |  17 +++
 src/include/config.h.in |   3 +
 src/plugin/X/X.c        | 275 ++++++++++++++++++++++++++++++++++++++++--------
 3 files changed, 252 insertions(+), 43 deletions(-)

diff --git a/configure.ac b/configure.ac
index a5b4df9..f444b31 100644
--- a/configure.ac
+++ b/configure.ac
 <at>  <at>  -376,6 +376,20  <at>  <at>  if test "$have_x" = "yes" ; then
                  [#include <X11/Xlib.h>])
     fi

+    AC_ARG_ENABLE(xrandr,
+              {  --disable-xrandr        do NOT use the XRandR extension])
+    if test "$enable_xrandr" != "no" ; then
+      AC_CHECK_LIB(Xrandr, XRRQueryVersion, enable_xrandr="yes", enable_xrandr="no")
(Continue reading)

Ryan C. Underwood | 18 Jan 06:51 2015
Picon

[PATCH] Add XRandR support; rework input device grabbing.

From: "Ryan C. Underwood" <nemesis@...>

XRandR support is fully added and works properly in a multihead configuration
if the user's version is at least 1.2.  It works basically like the existing
XVidMode code and is preferred whenever it is available.  It will also properly
restore the dosemu window's position when exiting fullscreen mode.

Keyboard and mouse grabbing had to be reworked to account for multihead (e.g.,
fullscreen DOS window on one output but with the ability to use applications on
a different output).

Signed-off-by: Ryan C. Underwood <nemesis@...>
---
 configure.ac            |  17 +++
 src/include/config.h.in |   3 +
 src/plugin/X/X.c        | 275 ++++++++++++++++++++++++++++++++++++++++--------
 3 files changed, 252 insertions(+), 43 deletions(-)

diff --git a/configure.ac b/configure.ac
index a5b4df9..f444b31 100644
--- a/configure.ac
+++ b/configure.ac
 <at>  <at>  -376,6 +376,20  <at>  <at>  if test "$have_x" = "yes" ; then
                  [#include <X11/Xlib.h>])
     fi

+    AC_ARG_ENABLE(xrandr,
+              {  --disable-xrandr        do NOT use the XRandR extension])
+    if test "$enable_xrandr" != "no" ; then
+      AC_CHECK_LIB(Xrandr, XRRQueryVersion, enable_xrandr="yes", enable_xrandr="no")
(Continue reading)


Gmane