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