From bfdafd91058b91d5d4e8ab36076e05ae29355f7b Mon Sep 17 00:00:00 2001 From: natrixaeria Date: Thu, 7 Nov 2019 16:55:32 +0100 Subject: Represent rust vga text structs as C structs --- kernel/src/io/vga_text.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/src/io/vga_text.rs b/kernel/src/io/vga_text.rs index fddb3e1..620aa32 100644 --- a/kernel/src/io/vga_text.rs +++ b/kernel/src/io/vga_text.rs @@ -23,6 +23,7 @@ pub const WIDTH: usize = 80; pub const HEIGHT: usize = 25; #[derive(Clone, Copy)] +#[repr(C)] pub struct CharState(pub u8); impl CharState { @@ -41,6 +42,7 @@ impl CharState { #[no_mangle] #[derive(Clone, Copy)] +#[repr(C)] pub struct VgaChar { pub byte: u8, pub state: CharState, -- cgit v1.2.3-70-g09d2