Cross-architecture test suite
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
|
||||
const std = @import("std");
|
||||
const danos = @import("danos");
|
||||
const arch = @import("arch");
|
||||
|
||||
/// The console font, embedded at compile time. cp850-8x16, PSF2 format:
|
||||
/// a 32-byte header, then 256 glyphs of 16 bytes each (one byte per 8-pixel
|
||||
@@ -40,6 +41,8 @@ pub const Console = struct {
|
||||
}
|
||||
|
||||
pub fn write(self: *Console, bytes: []const u8) void {
|
||||
// Mirror everything to the serial port so it's captured in logs / tests.
|
||||
arch.serialWrite(bytes);
|
||||
for (bytes) |c| self.putChar(c);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user