QNX RTOS v4 Knowledge Base
QNX RTOS v4 Knowledge Base
Title |
Proc32 shutdown options |
Ref. No. |
QNX.000002525 |
Category(ies) |
Utilities, Kernel |
Issue |
How does QNX shut down a machine? We have custom hardware and have to shut down our machine in a specific way.
|
Solution |
Proc32 provides 3 ways to shut down a machine. (these are invoked when using the 'shutdown' utility)
-b[1|2|3] Specifies reboot method: default Use system port 0x92, then keyboard controller, then cpu shutdown. -b Do not use keyboard controller when executing the default sequence. -b1 Reboot via keyboard controller first, then executethe default sequence. -b2 Reboot via system port 0x92 first (which is thedefault sequence). -b3 Reboot via processor shutdown only.
The options -b1, -b2 and -b3 may be combined with -b which subtracts the keyboard method from the subsequent execution of the default reboot sequence as follows:
Option Sequence
default port 0x92, keyboard, cpu
-b port 0x92, cpu
-b1 keyboard, port 0x92, keyboard, cpu
-b1 -b keyboard, port 0x92, cpu
-b2 port 0x92, keyboard, cpu
-b2 -b port 0x92, cpu
-b3 cpu
-b3 -b cpu
Interrupt vector 0xf5 is always invoked before trying any of these methods. For custom hardware, you can point this vector at code to cause the restart. |
|