Kernel: Add serial_debug cmdline parameter

serial_debug will output all the kprintf and dbgprintf data to COM1 at
8-N-1 57600 baud. this is particularly useful for debugging the boot
process on live hardware.

Note: it must be the first parameter in the boot cmdline.
This commit is contained in:
Conrad Pankoff 2019-08-11 14:43:38 +10:00 committed by Andreas Kling
commit 3026c37d5d
Notes: sideshowbarker 2024-07-19 12:46:00 +09:00
4 changed files with 89 additions and 8 deletions

View file

@ -7,6 +7,8 @@ int dbgprintf(const char* fmt, ...);
int dbgputstr(const char*, int);
int kprintf(const char* fmt, ...);
int ksprintf(char* buf, const char* fmt, ...);
void set_serial_debug(bool on_or_off);
int get_serial_debug();
}
#ifndef USERLAND