From 58a7b22c3ec60380f6efdfd1493b8823fe0c17bc Mon Sep 17 00:00:00 2001 From: Clément Sibille Date: Tue, 5 Oct 2021 21:03:09 +0200 Subject: Add terminal scrolling This closes #2. --- kernel/src/io.rs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'kernel/src/io.rs') diff --git a/kernel/src/io.rs b/kernel/src/io.rs index b6b4cc7..def8665 100644 --- a/kernel/src/io.rs +++ b/kernel/src/io.rs @@ -1,7 +1,5 @@ -pub fn out8(address: u16, value: u8) { - unsafe { - asm!( - "out dx, al", in("dx") address, in("al") value - ) - } -} \ No newline at end of file +pub unsafe fn out8(address: u16, value: u8) { + asm!( + "out dx, al", in("dx") address, in("al") value + ) +} -- cgit v1.2.3