Fixed tesing
Add mocking of functions Added new function type Fixed up the mock testing Working mock_framework :), fixed up all tests for VGA and TTY Adding tests VGA testing done Fin vga and tty mock testing Fixed build Removed white spaces WIP Added tests for all build modes + reduced import string length for testing Added comments refactoring Re-added constants Added some comments Updated to master of zig Added unit tests to pipeline PR comments Fixed typos
This commit is contained in:
parent
89c47d064b
commit
d5d4082a66
24 changed files with 1812 additions and 829 deletions
|
@ -1,41 +0,0 @@
|
|||
// 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 {}
|
||||
|
||||
///
|
||||
/// Register an interrupt handler. The interrupt number should be the arch-specific number.
|
||||
///
|
||||
/// Arguments:
|
||||
/// IN int: u16 - The arch-specific interrupt number to register for.
|
||||
/// IN handler: fn (ctx: *InterruptContext) void - The handler to assign to the interrupt.
|
||||
///
|
||||
pub fn registerInterruptHandler(int: u16, ctx: fn (ctx: *InterruptContext) void) void {}
|
Loading…
Add table
Add a link
Reference in a new issue