Do you know 32-bit code in BIOS INTs?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
~
Member
Member
Posts: 1228
Joined: Tue Mar 06, 2007 11:17 am
Libera.chat IRC: ArcheFire

Do you know 32-bit code in BIOS INTs?

Post by ~ »

Is there some known BIOS binary code or some possibility that BIOS INT calls such as video, disk, network, USB or other "advanced" services (or any other INTs) switch to protected mode when they are called for something like changing the video resolution?

Are there some BIOSes or peripherals known to switch to "full" 32 or 16-bit protected mode natively at some point in their BIOS services?
User avatar
quanganht
Member
Member
Posts: 301
Joined: Fri May 16, 2008 7:13 pm
Location: Hanoi, Vietnam

Re: Do you know 32-bit code in BIOS INTs?

Post by quanganht »

AFAIK, no.
"Programmers are tools for converting caffeine into code."
madeofstaples
Member
Member
Posts: 204
Joined: Thu Apr 12, 2007 8:15 am
Location: Michigan

Re: Do you know 32-bit code in BIOS INTs?

Post by madeofstaples »

Well there's INT 15/AH=89h...
Some people are offended by the verifiable truth; such people tend to remain blissfully unencumbered by fact.
If you are one of these people, my posts may cause considerable discomfort. Read at your own risk.
User avatar
quanganht
Member
Member
Posts: 301
Joined: Fri May 16, 2008 7:13 pm
Location: Hanoi, Vietnam

Re: Do you know 32-bit code in BIOS INTs?

Post by quanganht »

Lol, an interrupt used to enable Pmode. Why do people only talk about far jump but not this one?

Edit: I think the original author want to ask weather there is an interrupt that enter Pmode when it is executing and return back to realmode when it has done it's job. In this case, no.
"Programmers are tools for converting caffeine into code."
tantrikwizard
Member
Member
Posts: 153
Joined: Sun Jan 07, 2007 9:40 am
Contact:

Re: Do you know 32-bit code in BIOS INTs?

Post by tantrikwizard »

Not exactly what you're looking for but the VBE standard has some 32bit pmode functions for some video related functions. Initially execute interrupts in real mode to retrieve the pmode interface then after entering pmode the functions are called directly.
User avatar
Dex
Member
Member
Posts: 1444
Joined: Fri Jan 27, 2006 12:00 am
Contact:

Re: Do you know 32-bit code in BIOS INTs?

Post by Dex »

I think you will find int's like int 15h do.
Gigasoft
Member
Member
Posts: 856
Joined: Sat Nov 21, 2009 5:11 pm

Re: Do you know 32-bit code in BIOS INTs?

Post by Gigasoft »

BIOSes can only use protected mode during booting, and they often do so to copy PCI boot ROMs into low memory, for example. If they enter protected mode after booting, it would break systems that call the BIOS in V86 mode.
User avatar
Lithorien
Member
Member
Posts: 59
Joined: Tue Oct 27, 2009 1:40 pm
Location: Hanover, PA

Re: Do you know 32-bit code in BIOS INTs?

Post by Lithorien »

madeofstaples wrote:Well there's INT 15/AH=89h...
Woah! Why don't people use this to get to pmode instead of that far jump / manual IRQ remapping method?
earlz
Member
Member
Posts: 1546
Joined: Thu Jul 07, 2005 11:00 pm
Contact:

Re: Do you know 32-bit code in BIOS INTs?

Post by earlz »

Lithorien wrote:
madeofstaples wrote:Well there's INT 15/AH=89h...
Woah! Why don't people use this to get to pmode instead of that far jump / manual IRQ remapping method?
It looks like it may be vendor specific; as in, there is a reason you have never heard of it...

I think this may have a good use in some 512 byte competitions
jal
Member
Member
Posts: 1385
Joined: Wed Oct 31, 2007 9:09 am

Re: Do you know 32-bit code in BIOS INTs?

Post by jal »

quanganht wrote:Edit: I think the original author want to ask weather there is an interrupt that enter Pmode when it is executing and return back to realmode when it has done it's job. In this case, no.
Of course it's yes. XMS handling (e.g. int 15h/ah=87h) must do so to access extended memory. I'm not entirely sure whether there's BIOSes that have these services natively, i.e. without some HIMEM.SYS loaded, though RBIL seems to suggest there are:
RBIL wrote:Copy is done in protected mode with interrupts disabled by the default BIOS handler

JAL
User avatar
Love4Boobies
Member
Member
Posts: 2111
Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania

Re: Do you know 32-bit code in BIOS INTs?

Post by Love4Boobies »

I'm not a necro but...
jal wrote:Of course it's yes. XMS handling (e.g. int 15h/ah=87h) must do so to access extended memory.
I saw this post and remember trying to answer the exact same thing. jal beat me to it because chase won't give up that stupid Spamhaus crap.
earlz wrote:
Lithorien wrote:
madeofstaples wrote:Well there's INT 15/AH=89h...
Woah! Why don't people use this to get to pmode instead of that far jump / manual IRQ remapping method?
It looks like it may be vendor specific; as in, there is a reason you have never heard of it...
It's not. It's defined by the IBM Personal Computer Standard 2.
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
Post Reply