diff options
author | Luca Dariz <luca.dariz@gmail.com> | 2022-02-05 18:51:27 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-08-27 21:05:20 +0200 |
commit | 51440a64025037e8ea68f80ac4a5aeb9b8abf764 (patch) | |
tree | fbb779b356e6f785762b3964ffbcf34e87181240 /i386 | |
parent | 19670a6df24b18a05a542ae932d8c44ed97c7c71 (diff) | |
download | gnumach-51440a64025037e8ea68f80ac4a5aeb9b8abf764.tar.gz gnumach-51440a64025037e8ea68f80ac4a5aeb9b8abf764.tar.bz2 gnumach-51440a64025037e8ea68f80ac4a5aeb9b8abf764.zip |
fix console setting from cmdline
The leading space prevents it working if console=comX is the only
argument, so handle this case separately.
Signed-off-by: Luca Dariz <luca@orpolo.org>
Message-Id: <20220205175129.309469-5-luca@orpolo.org>
Diffstat (limited to 'i386')
-rw-r--r-- | i386/i386at/com.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/i386/i386at/com.c b/i386/i386at/com.c index d565a053..1f305b23 100644 --- a/i386/i386at/com.c +++ b/i386/i386at/com.c @@ -189,6 +189,11 @@ comcnprobe(struct consdev *cp) if (console) mach_atoi(console + strlen(CONSOLE_PARAMETER), &rcline); + if (strncmp(kernel_cmdline, CONSOLE_PARAMETER + 1, + strlen(CONSOLE_PARAMETER) - 1) == 0) + mach_atoi(kernel_cmdline + strlen(CONSOLE_PARAMETER) - 1, + &rcline); + maj = 0; unit = -1; pri = CN_DEAD; |