Commit c603d13
committed
serial: Use external uart_16550 crate
When trying to run this on various hypervisors (QEMU, GCE, etc...), I
noticed that our serial implementation is not very robust. We can
start in the wrong mode or drop bytes, as we do not properly observe
the status bits or setup the configuration registers.
Instead of doing this ourselevs, we just use an external crate. Note
that this create is made by the same people as x86_64, and only has
that crate as a dependancy.
Signed-off-by: Joe Richey <joerichey@google.com>1 parent 871f6b1 commit c603d13
4 files changed
+17
-9
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| 143 | + | |
| 144 | + | |
143 | 145 | | |
144 | 146 | | |
145 | 147 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | 27 | | |
29 | 28 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
| 29 | + | |
35 | 30 | | |
36 | 31 | | |
37 | 32 | | |
| |||
0 commit comments