Add TTY and VGA interface
Line endings Removed redundant files Line ending
This commit is contained in:
parent
0196ef7824
commit
faeb433bb0
7 changed files with 3016 additions and 98 deletions
32
test/kernel/arch_mock.zig
Normal file
32
test/kernel/arch_mock.zig
Normal file
|
@ -0,0 +1,32 @@
|
|||
// Zig version: 0.4.0
|
||||
|
||||
///
|
||||
/// Initialise the architecture
|
||||
///
|
||||
pub fn init() void {}
|
||||
|
||||
///
|
||||
/// Inline assembly to write to a given port with a byte of data.
|
||||
///
|
||||
/// Arguments:
|
||||
/// IN port: u16 - The port to write to.
|
||||
/// IN data: u8 - The byte of data that will be sent.
|
||||
///
|
||||
pub fn outb(port: u16, data: u8) void {}
|
||||
|
||||
///
|
||||
/// Inline assembly that reads data from a given port and returns its value.
|
||||
///
|
||||
/// Arguments:
|
||||
/// IN port: u16 - The port to read data from.
|
||||
///
|
||||
/// Return:
|
||||
/// The data that the port returns.
|
||||
///
|
||||
pub fn inb(port: u16) u8 {return 0;}
|
||||
|
||||
///
|
||||
/// A simple way of waiting for I/O event to happen by doing an I/O event to flush the I/O
|
||||
/// event being waited.
|
||||
///
|
||||
pub fn ioWait() void {}
|
Loading…
Add table
Add a link
Reference in a new issue