[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
x86 programming question
- Date: Sat, 25 Aug 2001 05:23:28 +1000
- From: cjohns at cybertec.com.au (Chris Johns)
- Subject: x86 programming question
Joel Sherrill wrote:
> I know the interrupt and know how to write the code in real mode to do
> this call. However,
> the results of this call are of more use in protected mode. So I saw
> only a handful of options:
> + figure out how to do the BIOS call in protected mode
> + do the BIOS call in real mode and figure out how to save the results
> in memory in such a way that they can be retrieved in protected mode.
> + (from Rosimildo) leave the memory size in a register at the time of
> transition from real to protected mode then save it away for later use.
> So ideally I would like a generic way to perform a BIOS call from protected
I suggest you look into the Etherboot project code on SourceForge :
Look in start32.S in the src directory. Near the end is call to switch
between protected and real mode. Maybe they will help.
Chris Johns, cjohns @ cybertec.com.au