Problem detecting PCI BIOS after increasing stack size

I am using the “_CA_PCI_BIOS_Preset()” function from the “/sys/pci.h”
file to find/verify the PCI BIOS. Everything was fine until I had to
increase the stack size, and it then no longer detected the BIOS
(returns not detected).

Any ideas?

I’m using QNX 4.25C and Watcom 10.6 with both Watcom patches
installed.

Thanks

Hilbrand Sybesma <hilbrand.sybesma@bepco.com> wrote:

I am using the “_CA_PCI_BIOS_Preset()” function from the “/sys/pci.h”
file to find/verify the PCI BIOS. Everything was fine until I had to
increase the stack size, and it then no longer detected the BIOS
(returns not detected).

Any ideas?

Don’t increase the stack size. The _CA_PCI functions dive directly
into the PCI BIOS, which is a 32-bit callable BIOS, but it requires
that the stack be less than 64K.

Or, use a PCI server process, and communicate with it using messages –
the server will always be capable of being compiled with less than
64K stack. (This is the QNX 6 implementation.)

I wrote a server/library package that does it, and it should be
available from:

ftp.qnx.com:/usr/free/qnx4/os/samples/ca_pci_msg.tgz

-David

QNX Training Services
dagibbs@qnx.com