diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2023-11-12 19:32:57 +0000 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2023-11-12 19:32:57 +0000 |
commit | 0ff5b74c2555ccc51f4b82de7428443949b6053f (patch) | |
tree | b1a4a99c9ac9bbd73bafc3a38ec65e7f3e4a2196 /sys/src/cmd/cpp/cpp.c | |
parent | e2ddc61fed70c120ed61540181d1212f2cb05567 (diff) |
devuart: cleanup uart console code
Some ports used a messy uarti8250 clone that had its
own backdoor unbuffered uart interface (serialputc()...),
which is really not needed at all, as devuart provides
one with uartputc(), once one sets uartcons variable.
There was some ugly interleaving of prints for mpinit,
which was because uartreset() (called from chandevreset)
would set serialoq ealy before the clocks are ticking,
so the coming up processors would use the buffered uart
while cpuidprint uses the unbufferd one...
Instead, we set serialoq in uartini() (called from
chandevinit) which is guaranteed to be done after
mpinit has completed.
Diffstat (limited to 'sys/src/cmd/cpp/cpp.c')
0 files changed, 0 insertions, 0 deletions