loader: comconsole: don't unconditionally wipe out hw.uart.console
It may be the case that we need to set hw.uart.console manually in some scenarios that comconsole can't necessarily support. Avoid clobbering hw.uart.console unless we've actually selected comconsole so that one could at least get kernel console output.. Discussed with: imp Sponsored by: Zenith Electronics LLC Sponsored by: Klara, Inc.
This commit is contained in:
parent
26713ad9cf
commit
ec671f4980
@ -338,12 +338,13 @@ comc_setup(int speed, int port)
|
|||||||
char intbuf[64];
|
char intbuf[64];
|
||||||
int tries;
|
int tries;
|
||||||
|
|
||||||
unsetenv("hw.uart.console");
|
|
||||||
comc_curspeed = speed;
|
comc_curspeed = speed;
|
||||||
comc_port = port;
|
comc_port = port;
|
||||||
if ((comconsole.c_flags & (C_ACTIVEIN | C_ACTIVEOUT)) == 0)
|
if ((comconsole.c_flags & (C_ACTIVEIN | C_ACTIVEOUT)) == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
unsetenv("hw.uart.console");
|
||||||
|
|
||||||
#define COMC_TEST 0xbb
|
#define COMC_TEST 0xbb
|
||||||
/*
|
/*
|
||||||
* Write byte to scratch register and read it out.
|
* Write byte to scratch register and read it out.
|
||||||
|
Loading…
Reference in New Issue
Block a user