From: Stas Sergeev <stssppnn@yahoo.com>
To: linux-msdos@vger.kernel.org
Subject: Re: Terminal Video Problem Solved (and sound too!)
Date: Tue, 03 Dec 2002 19:12:18 +0300 [thread overview]
Message-ID: <3DECD7E2.4090501@yahoo.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1029 bytes --]
Hello.
Mushroom wrote:
> I am now ready to try any settings the 2 of you suggest in the conf
> files.
OK, no special settings, just disabled
$_pci and $_chipset="plainvga".
To make your test more valuable, please
apply the attached patch. It disallows
any IO except for that was granted by
ioperm() for v86 mode.
This patch will prevent dosemu from
cleaning the screen properly, so avoid
killing it while in graphics mode (or
keep your X ready to switch there).
Apply this patch without anything else
like post-less "cost-less" init to 1.1.3.7.
If this, by any chance, also makes the
lock-ups to go away, then we are dealing with
some very bad bug. This patch will
produce a lot of output in your boot.log
or console or whatever you are using to
get an output from dosemu, send this log
to me.
But if you have lock-ups also with that
patch... then is seems that only touching
the VGA registers is already enough to lock
up the entire system with some video cards:(
In that case the post-less init looks like
the only solution.
[-- Attachment #2: port_test.diff --]
[-- Type: text/plain, Size: 2634 bytes --]
--- src/include/port.h Tue Mar 19 00:58:18 2002
+++ src/include/port.h Tue Dec 3 18:33:51 2002
@@ -15,6 +15,7 @@
#include "config.h"
#include "types.h"
#include "priv.h"
+#include "dosemu_debug.h"
/* port i/o privileges */
#define IO_READ 1
@@ -60,47 +61,53 @@
static __inline__ void port_real_outb(ioport_t port, Bit8u value)
{
if (!can_do_root_stuff) return;
- __asm__ __volatile__ ("outb %0,%1"
+ error("IO attempt: outb, port 0x%x\n", port);
+/* __asm__ __volatile__ ("outb %0,%1"
::"a" ((Bit8u) value), "d"((Bit16u) port));
-}
+*/}
static __inline__ Bit8u port_real_inb(ioport_t port)
{
- Bit8u _v;
+// Bit8u _v;
if (!can_do_root_stuff) return 0xff;
- __asm__ __volatile__ ("inb %1,%0"
+ error("IO attempt: inb, port 0x%x\n", port);
+/* __asm__ __volatile__ ("inb %1,%0"
:"=a" (_v):"d"((Bit16u) port));
- return _v;
+*/ return 0xff;
}
static __inline__ void port_real_outw(ioport_t port, Bit16u value)
{
if (!can_do_root_stuff) return;
- __asm__ __volatile__ ("outw %0,%1" :: "a" ((Bit16u) value),
+ error("IO attempt: outw, port 0x%x\n", port);
+/* __asm__ __volatile__ ("outw %0,%1" :: "a" ((Bit16u) value),
"d" ((Bit16u) port));
-}
+*/}
static __inline__ Bit16u port_real_inw(ioport_t port)
{
- Bit16u _v;
+// Bit16u _v;
if (!can_do_root_stuff) return 0xffff;
- __asm__ __volatile__ ("inw %1,%0":"=a" (_v) : "d" ((Bit16u) port));
- return _v;
+ error("IO attempt: inw, port 0x%x\n", port);
+/* __asm__ __volatile__ ("inw %1,%0":"=a" (_v) : "d" ((Bit16u) port));
+*/ return 0xffff;
}
static __inline__ void port_real_outd(ioport_t port, Bit32u value)
{
if (!can_do_root_stuff) return;
- __asm__ __volatile__ ("outl %0,%1" : : "a" (value),
+ error("IO attempt: outd, port 0x%x\n", port);
+/* __asm__ __volatile__ ("outl %0,%1" : : "a" (value),
"d" ((Bit16u) port));
-}
+*/}
static __inline__ Bit32u port_real_ind(ioport_t port)
{
- Bit32u _v;
+// Bit32u _v;
if (!can_do_root_stuff) return 0xffffffff;
- __asm__ __volatile__ ("inl %1,%0":"=a" (_v) : "d" ((Bit16u) port));
- return _v;
+ error("IO attempt: ind, port 0x%x\n", port);
+/* __asm__ __volatile__ ("inl %1,%0":"=a" (_v) : "d" ((Bit16u) port));
+*/ return 0xffffffff;
}
--- src/env/video/vga.c Tue Mar 19 00:58:13 2002
+++ src/env/video/vga.c Tue Dec 3 18:45:39 2002
@@ -619,7 +619,7 @@
error("CAN'T DO VIDEO INIT, BIOS NOT MAPPED!\n");
return;
}
- if (set_ioperm(0x3b0, 0x3db - 0x3b0, 1))
+ if (set_ioperm(0x3b0, 0x3df - 0x3b0, 1))
warn("couldn't get range!\n");
config.vga = 1;
set_vc_screen_page(READ_BYTE(BIOS_CURRENT_SCREEN_PAGE));
next reply other threads:[~2002-12-03 16:12 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-03 16:12 Stas Sergeev [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-12-02 22:24 Terminal Video Problem Solved (and sound too!) Stas Sergeev
2002-12-03 5:27 ` Mushroom
2002-12-02 10:42 Stas Sergeev
2002-12-02 21:02 ` Mushroom
2002-12-02 21:33 ` Bart Oldeman
2002-12-01 18:37 Newbie with terminal video problems Stas Sergeev
2002-12-01 23:47 ` Terminal Video Problem Solved (and sound too!) Mushroom
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=3DECD7E2.4090501@yahoo.com \
--to=stssppnn@yahoo.com \
--cc=linux-msdos@vger.kernel.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