* [Qemu-devel] BIOS calls in 16bit protected mode
@ 2012-06-14 3:13 Kevin O'Connor
2012-06-14 3:17 ` Natalia Portillo
0 siblings, 1 reply; 4+ messages in thread
From: Kevin O'Connor @ 2012-06-14 3:13 UTC (permalink / raw)
To: seabios, qemu-devel
Hi,
I am trying to determine if there are legacy applications or operating
systems that invoke standard BIOS real-mode interrupt handlers while
in 16bit protected mode. (The legacy real-mode entry points - like
"int 0x13" - not the declared 16bit protected mode entry points
defined by the PnP and APM specs.)
I am considering changes to SeaBIOS that would make 16bit protected
mode callers much less likely to work. (Specifically, enhancing
SeaBIOS to use memory in the e-segment which is unlikely to be mapped
in protected mode.)
Most documents I've seen state that calling the real-mode entry points
in protected mode will not work. Though, I am aware that the PCI BIOS
spec specifically requires this support for calls to "int 0x1a
ah=0xb1".
The advantage of making these changes is that it will allow SeaBIOS to
use notably less stack space and therefore be more compatible with old
applications that call the BIOS with very little stack space. For
example, these changes enable DOS 1.0 to boot and run under SeaBIOS.
What would really help is pointers to applications and/or program
images that use 16bit protected mode calls to real-mode entry points.
Specifications or documents detailing valid or invalid uses would also
be helpful.
For those that are willing to run tests, one can compare the standard
SeaBIOS v1.7.0 image (for KVM/QEMU) at:
http://git.seabios.org/downloads/get/bios.bin-1.7.0.gz
to a test image with the new code at:
http://git.seabios.org/downloads/get/bios.bin-test-20120613.gz
Thanks,
-Kevin
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] BIOS calls in 16bit protected mode
2012-06-14 3:13 [Qemu-devel] BIOS calls in 16bit protected mode Kevin O'Connor
@ 2012-06-14 3:17 ` Natalia Portillo
2012-06-14 3:57 ` Kevin O'Connor
2012-06-14 3:58 ` Roy Tam
0 siblings, 2 replies; 4+ messages in thread
From: Natalia Portillo @ 2012-06-14 3:17 UTC (permalink / raw)
To: Kevin O'Connor; +Cc: seabios, qemu-devel
[-- Attachment #1: Type: text/plain, Size: 2046 bytes --]
Hi Kevin,
Long time ago I read about OS/2 calling 16-bit protected mode BIOS, but the documentation didn't specified if this was constrained to the separate protected mode BIOS included by PS/2 systems or the real mode BIOS included by the same PS/2 systems and the whole rest of PC computers.
Regards,
Natalia Portillo
El 14/06/2012, a las 04:13, Kevin O'Connor escribió:
> Hi,
>
> I am trying to determine if there are legacy applications or operating
> systems that invoke standard BIOS real-mode interrupt handlers while
> in 16bit protected mode. (The legacy real-mode entry points - like
> "int 0x13" - not the declared 16bit protected mode entry points
> defined by the PnP and APM specs.)
>
> I am considering changes to SeaBIOS that would make 16bit protected
> mode callers much less likely to work. (Specifically, enhancing
> SeaBIOS to use memory in the e-segment which is unlikely to be mapped
> in protected mode.)
>
> Most documents I've seen state that calling the real-mode entry points
> in protected mode will not work. Though, I am aware that the PCI BIOS
> spec specifically requires this support for calls to "int 0x1a
> ah=0xb1".
>
> The advantage of making these changes is that it will allow SeaBIOS to
> use notably less stack space and therefore be more compatible with old
> applications that call the BIOS with very little stack space. For
> example, these changes enable DOS 1.0 to boot and run under SeaBIOS.
>
> What would really help is pointers to applications and/or program
> images that use 16bit protected mode calls to real-mode entry points.
> Specifications or documents detailing valid or invalid uses would also
> be helpful.
>
> For those that are willing to run tests, one can compare the standard
> SeaBIOS v1.7.0 image (for KVM/QEMU) at:
>
> http://git.seabios.org/downloads/get/bios.bin-1.7.0.gz
>
> to a test image with the new code at:
>
> http://git.seabios.org/downloads/get/bios.bin-test-20120613.gz
>
> Thanks,
> -Kevin
>
[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 235 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] BIOS calls in 16bit protected mode
2012-06-14 3:17 ` Natalia Portillo
@ 2012-06-14 3:57 ` Kevin O'Connor
2012-06-14 3:58 ` Roy Tam
1 sibling, 0 replies; 4+ messages in thread
From: Kevin O'Connor @ 2012-06-14 3:57 UTC (permalink / raw)
To: Natalia Portillo; +Cc: seabios, qemu-devel
On Thu, Jun 14, 2012 at 04:17:19AM +0100, Natalia Portillo wrote:
> Hi Kevin,
>
> Long time ago I read about OS/2 calling 16-bit protected mode BIOS,
> but the documentation didn't specified if this was constrained to
> the separate protected mode BIOS included by PS/2 systems or the
> real mode BIOS included by the same PS/2 systems and the whole rest
> of PC computers.
Thanks. At one point (many years ago) I had OS2 floppy disks for v1.0
through v4.0. However, at this point I just have the OS2 Warp images.
If anyone does has a pointer to images let me know. My image of os2
warp seems to boot okay.
-Kevin
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] BIOS calls in 16bit protected mode
2012-06-14 3:17 ` Natalia Portillo
2012-06-14 3:57 ` Kevin O'Connor
@ 2012-06-14 3:58 ` Roy Tam
1 sibling, 0 replies; 4+ messages in thread
From: Roy Tam @ 2012-06-14 3:58 UTC (permalink / raw)
To: Natalia Portillo; +Cc: Kevin O'Connor, seabios, qemu-devel
2012/6/14 Natalia Portillo <claunia@claunia.com>:
> Hi Kevin,
>
> Long time ago I read about OS/2 calling 16-bit protected mode BIOS, but the documentation didn't specified if this was constrained to the separate protected mode BIOS included by PS/2 systems or the real mode BIOS included by the same PS/2 systems and the whole rest of PC computers.
IIRC Borland Pascal 7.0 programs did use 16-bit protected mode (
http://www.monstersoft.com/tutorial1/PM_intro.html ), but I don't have
such programs in hand.
>
> Regards,
> Natalia Portillo
>
> El 14/06/2012, a las 04:13, Kevin O'Connor escribió:
>
>> Hi,
>>
>> I am trying to determine if there are legacy applications or operating
>> systems that invoke standard BIOS real-mode interrupt handlers while
>> in 16bit protected mode. (The legacy real-mode entry points - like
>> "int 0x13" - not the declared 16bit protected mode entry points
>> defined by the PnP and APM specs.)
>>
>> I am considering changes to SeaBIOS that would make 16bit protected
>> mode callers much less likely to work. (Specifically, enhancing
>> SeaBIOS to use memory in the e-segment which is unlikely to be mapped
>> in protected mode.)
>>
>> Most documents I've seen state that calling the real-mode entry points
>> in protected mode will not work. Though, I am aware that the PCI BIOS
>> spec specifically requires this support for calls to "int 0x1a
>> ah=0xb1".
>>
>> The advantage of making these changes is that it will allow SeaBIOS to
>> use notably less stack space and therefore be more compatible with old
>> applications that call the BIOS with very little stack space. For
>> example, these changes enable DOS 1.0 to boot and run under SeaBIOS.
>>
>> What would really help is pointers to applications and/or program
>> images that use 16bit protected mode calls to real-mode entry points.
>> Specifications or documents detailing valid or invalid uses would also
>> be helpful.
>>
>> For those that are willing to run tests, one can compare the standard
>> SeaBIOS v1.7.0 image (for KVM/QEMU) at:
>>
>> http://git.seabios.org/downloads/get/bios.bin-1.7.0.gz
>>
>> to a test image with the new code at:
>>
>> http://git.seabios.org/downloads/get/bios.bin-test-20120613.gz
>>
>> Thanks,
>> -Kevin
>>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-06-14 3:58 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-14 3:13 [Qemu-devel] BIOS calls in 16bit protected mode Kevin O'Connor
2012-06-14 3:17 ` Natalia Portillo
2012-06-14 3:57 ` Kevin O'Connor
2012-06-14 3:58 ` Roy Tam
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).