startup-apic

Startup for Intel Advanced Programmable Interrupt Controller (APIC) systems (QNX Neutrino)

Syntax:

startup-apic [-ABb] [-D channel[.channel_opts]] 
    [-F [~]value]
    [-f [cpu_freq][,[cycles_freq][,timer_freq]]]
    [-I flag] [-i ifs2_size[,flags][,paddr_src][,paddr_dst]]
    [-j addr] [-K channel[.channel_opts]] 
    [-N hostname] [-P max_cpus] 
    [-R size[,align]] [-r addr,size[,flag]]
    [-S [~]section] [-s size] [-T] [-v[v]...] [-x]

Runs on:

QNX Neutrino

Targets:

x86

Options:

In addition to the generic startup-* and x86-specific options, startup-apic supports the following options:

-b
Don't reserve the bottom 4 KB of memory for virtual 8086 mode. This provides an extra 4 KB of memory for system use.
-s size
Copy the given amount of video card ROM into RAM, and set the x86 page tables to refer to the RAM copy rather than the ROM. The size is in bytes, unless followed by one of K (kilobytes), M (megabytes), or G (gigabytes). Specifying the -s option causes the following call:
x86_pcbios_shadow_rom( 0xc0000, size );
  

For more information, see The startup library in the Customizing Image Startup Programs chapter of Building Embedded Systems.

Debug channels

The debug channel specified with the -D and -K options can be:

8250[.port[^shift][.baud[.clock[.divisor]]]]
Use a generic 8250-compatible serial chip, with:
port
Specify the I/O port base address for the 8250, in hexadecimal. The default is 3f8.
shift
Specify the spacing between the I/O registers, in 2shift bytes. The default is 0.
baud
Specify the baud rate for the debug channel. The default is 57600.
clock
Specify the clock rate (in Hz) input to the chip. The default is 1843200.
divisor
Specify the divisor used on the clock rate by the chip. The default is 16.
console
Use the PC console.

You can skip options by leaving out the data associated with that part. For example, if you want to send the debugging output to an 8250 chip using 9600 baud, use:

-D 8250..9600

The default -D and -K settings are:

-D console
-K 8250.3f8^0.57600.1843200.16

Description:

The startup-apic program is the startup for boards that support Intel Advanced Programmable Interrupt Controllers (APIC). It supports Message Signaled Interrupts (MSI) and Extended MSI (MSI-X).


Note: If you're running startup-apic, you must use pci-bios-v2 instead of pci-bios, but it must still be called pci-bios in order for the enumerators to work correctly. In your buildfile, add pci-bios-v2 like this:
pci-bios=pci-bios-v2

Examples:

Direct debug output to the console:

startup-apic -Nnode120 -vvvv -Dconsole

Direct debug output to the first serial port (making sure the baud rate was set to 115200 on the receiving side):

startup-apic -Nnode120 -vvvv -D8250..115200

Direct debug output to the serial port at 2f8:

startup-apic -Nnode120 -vvvv -D8250.2f8.115200

See also:

mkifs, pci-bios-v2, procnto, procnto-smp, startup-* options, startup-*

ClockTime(), SYSPAGE_ENTRY() in the QNX Neutrino Library Reference

Customizing Image Startup Programs in Building Embedded Systems