#include <oskit/x86/pc/base_console.h>
The following variable are used in the base_console code:Refer to section 10.13.2 for more information on command line options and environment variables. See section 10.17 for more on remote GDB.
- serial_console
- Set non-zero if a serial port is being used as the console. Default value is zero, but may be turned on by either a command line option or the CONS_COM environment variable.
- cons_com_port
- If serial_console is non-zero, this variable indicates the COM port to use for console input and output. Default value is 1, but may be changed by setting the CONS_COM environment variable. Possible values are 1, 2, 3 or 4.
- enable_gdb
- If non-zero, enables the GDB trap handler; i.e. makes remote debugging possible. The default value is zero.
- gdb_com_port
- If enable_gdb is non-zero, this variable indicates the COM port to use for remote GDB interaction. The default value is 1 (the console and remote GDB can share the same serial port, but do not have to). Possible values are 1, 2, 3 or 4.