Hilbrand Sybesma <email@example.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).
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
QNX Training Services