mirror of
https://github.com/reactos/reactos.git
synced 2026-05-11 02:22:53 +08:00
This is the same feature as the one that already exists in the NTOS:KD!kdmain.c module used by the in-kernel KDBG debugger (GCC builds), first introduced in commit4ce30245de(r54473), and documented at: https://reactos.org/wiki/Debugging#Changing_the_serial_port_address This feature is useful if one uses a PCI, PCIe, PCMCIA, or ExpressCard serial card on real hardware (these cards are used e.g. with laptops without a built-in serial port), or with AMT serial over LAN. After determining the serial port I/O address (say, 0xCC00), specify the debug port as follows: /DEBUGPORT=COM:0xCC00 instead of the usual syntax: /DEBUGPORT=COMn (n an integer). The same syntax can be used for debugging FreeLoader as well: in the FREELDR.INI file, add a "Debug" line in the "FREELOADER" section, as follows: ``` [FREELOADER] Debug=/DEBUG /DEBUGPORT=COM:0xCC00 /BAUDRATE=115200 ``` ---- NOTE for KDCOM/KDGDB: Since `strtoul()` is used, but isn't exported by ntoskrnl, link against the "strtol" static library that has been introduced in commitd317d4fbcc(r71481).