[SeaBIOS] [RFC] [PATCH 1/2] Implement support for transitioning from 16 bit to 32 bit

Gerd Hoffmann kraxel at redhat.com
Tue Nov 23 11:32:13 CET 2010


On 11/23/10 02:13, Kevin O'Connor wrote:
> On Mon, Nov 22, 2010 at 07:40:36PM -0500, Kevin O'Connor wrote:
>> It should be possible to extend call32() to do what you need -
>
> FYI - here's what call32 extended to pass a parameter looks like:
>
> --- a/src/stacks.c
> +++ b/src/stacks.c
> @@ -37,14 +37,14 @@ static inline void lgdt(struct descloc_s *desc) {
>   }
>
>   // Call a 32bit SeaBIOS function from a 16bit SeaBIOS function.
> -static inline int
> -call32(void *func)
> +static inline u32
> +call32(void *func, u32 eax, u32 errret)

Tried to use that (see patch).  Failed.  When calling pci_readl from 
real mode I see the pci_readl debug printf but not the one from 
pci_readl_32 ...

cheers,
   Gerd
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pci.diff
URL: <http://www.seabios.org/pipermail/seabios/attachments/20101123/d384a096/attachment.ksh>


More information about the SeaBIOS mailing list