Linux MS DOS discussions
 help / color / mirror / Atom feed
From: jean-francois simon <jfs@themis.com>
To: Bart Oldeman <bartoldeman@users.sourceforge.net>
Cc: linux-msdos@vger.kernel.org
Subject: Re: PCI MMIO under DOSEMU
Date: Fri, 26 Jun 2009 12:13:45 +0200	[thread overview]
Message-ID: <4A449F59.7060909@themis.com> (raw)
In-Reply-To: <c3d607cc0906251203s2d2104d5yf899262187a68e2e@mail.gmail.com>

Bart Oldeman wrote:
> 2009/6/24 jean-francois simon <jfs@themis.com>:
>> i have a dos program using DPMI and making PCI accesses. it runs fine as
>> a DOS stand alone. Under dosemu  it can make PCI configuration access no
>> problem. but when it tries to make PCI memory access then it fails. i am
>> trying to access the following PCI MMIO resource at address 0xDFFFF000:
>>
>> 0a:0a.0 Bridge: Device 1895:0001 (rev 01)
>>        Subsystem: Device 1895:0001
>>        Flags: bus master, medium devsel, latency 64, IRQ 10
>>        Memory at dffff000 (32-bit, non-prefetchable) [size=4K]
>>        Memory at 80000000 (32-bit, non-prefetchable) [size=1024M]
>>        Memory at de000000 (32-bit, non-prefetchable) [size=16M]
>>        Memory at dd000000 (32-bit, non-prefetchable) [size=16M]
>>        Memory at 7e000000 (64-bit, prefetchable) [size=16M]
>>
>>
>> is it possible to access PCI MMIO under dosemu?
> 
> This should be possible using $_hardware_ram:
> $_hardware_ram = "range 0xdffff000,0xdfffffff range 0x80000000,0x80100000"  etc.
> 
> Bart
> 


thx for the info.
i have tried it and it fails with:

Page fault: write instruction to linear address: 0xdffff3fc
CPU was in user mode
Exception was caused by non-available page
  VFLAGS(b): 010000001010000110
EAX: 01000000  EBX: 00cc8600  ECX: 00cc8600  EDX: 00000615  VFLAGS(h):
00010286
ESI: 00000212  EDI: dffff3fc  EBP: 00000000
CS: 0033  DS: 0000  ES: 0000  FS: 0000  GS: 0000

the address is valid since it is that which is reported by lspci. but it
seems like a permission issue (CPU was in user mode). i did a "dosemu
-s" though.
-jfs

  reply	other threads:[~2009-06-26 10:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-24 15:21 PCI MMIO under DOSEMU jean-francois simon
2009-06-25 19:03 ` Bart Oldeman
2009-06-26 10:13   ` jean-francois simon [this message]
2009-06-26 12:03     ` Bart Oldeman

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=4A449F59.7060909@themis.com \
    --to=jfs@themis.com \
    --cc=bartoldeman@users.sourceforge.net \
    --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