A20 Address line - XMS issue
Hi all,
First of all sorry if I am talking about something which is very
silly and stupid topic.
I want to use HIMEM.SYS under DOSEMU with FreeDOS. I heard that this is not possible and I was advised to use XMS and EMS settings available under DOSEmu. But I read from FAQs is that I cannot use them if my program uses VCPI or some other method to access high memory access.
I tried loading HIMEM.sys and it bounced back with error message
'Unable to Control A20 Line', after some quick hack into dos code I found that DOSEmu is explicitly disabling A20 line and denying any further interrupt calls on that (i guess it is int15,0x87 and 0x88)
May i know why is it so? If DOSEmu can allow these interrupts then programs like himem.sys can use of this and provide the memory manager suppor with VCPI support etc. Is there any technical difficulty or memory blocking issues with this or it is disabled for some anonymous reasons.
Is there any alternative way for this.
Thank you and sorry if this has been discussed already, gopi
On Fri, Dec 06, 2002 at 08:23:52PM +0530, S.Gopi wrote
Quoted 7 lines
May i know why is it so? If DOSEmu can allow these interrupts then programs like himem.sys can use of this and provide the memory manager suppor with VCPI support etc. Is there any technical difficulty or memory blocking issues with this or it is disabled for some anonymous reasons.
As VCPI uses priveledged instructions, which are reserved for the kernel, you can't use VCPI. DPMI is the method to use 32-bit programs.
Reinhard
Quoted 4 lines · S.Gopi
I want to use HIMEM.SYS under DOSEMU with FreeDOS. I heard that this is not possible and I was advised to use XMS and EMS settings available under DOSEmu. But I read from FAQs is that I cannot use them if my program uses VCPI or some other method to access high memory access.
HIMEM.SYS services are *provided* by DOSEMU. HIMEM.SYS might be able to run in DOSEMU if DOSEMU would implement int 0x15/0x87 to copy extended memory though. However it's a fairly pointless exercise unless you really need some very special use.
Quoted 4 lines
I tried loading HIMEM.sys and it bounced back with error message 'Unable to Control A20 Line', after some quick hack into dos code I found that DOSEmu is explicitly disabling A20 line and denying any further interrupt calls on that (i guess it is int15,0x87 and
0x88)
a) dosemu does not implement int15/0x87
b) dosemu emulates A20 through these calls
1. XMS driver calls ah=3/4/5/6/7.
2. the relevant I/O port (keyboard related).
using a paging technique. The XMS driver API (in real DOS this API is provided by HIMEM or FreeDOS FDXMS) has been in DOSEMU for ages. The port technique became necessary when we found out that Windows ME DOS bootdisks use that.
Quoted 5 lines
May i know why is it so? If DOSEmu can allow these interrupts then programs like himem.sys can use of this and provide the memory manager suppor with VCPI support etc. Is there any technical difficulty or memory blocking issues with this or it is disabled for some anonymous reasons.
himem.sys might run, but VCPI support is out of the question without CPU emulation; VCPI needs ring-0 access.
Bart
Quoted 8 lines · --- Bart Oldeman
HIMEM.SYS services are *provided* by DOSEMU.
HIMEM.SYS might be able to
run in DOSEMU if DOSEMU would implement int
0x15/0x87 to copy extended
memory though. However it's a fairly pointless
exercise unless you really
need some very special use.
it looks fine, if dosemu can emulated these interrupt calls and do memory paging in the protected mode itself with given virtual memory(something like what is being done in the XMS now) it would make it possible to use HIMEM.sys
Quoted 15 lines
a) dosemu does not implement int15/0x87
b) dosemu emulates A20 through these calls
1. XMS driver calls ah=3/4/5/6/7.
2. the relevant I/O port (keyboard related). using a paging technique. The XMS driver API (in
real DOS this
API is provided by HIMEM or FreeDOS FDXMS) has
been in DOSEMU
for ages. The port technique became necessary
when we found out that
Windows ME DOS bootdisks use that.
Quoted 3 lines
himem.sys might run, but VCPI support is out of the question without CPU
emulation; VCPI needs ring-0 access.
fine, what is the effort that needs to be put on this, I mean is that possible to do it with current dosemu distribution itself with little bit of code hack. I would like to do it since this is very much important for the project i am involved in.
gopi
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com