aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/arch/x86_64/interrupt/mod.rs1
-rw-r--r--src/lib.rs1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/arch/x86_64/interrupt/mod.rs b/src/arch/x86_64/interrupt/mod.rs
index 6591bde..9273ef7 100644
--- a/src/arch/x86_64/interrupt/mod.rs
+++ b/src/arch/x86_64/interrupt/mod.rs
@@ -27,6 +27,7 @@ extern "C" {
// [48:63] - addr[16:31]
// [64:95] - addr[32:63]
#[repr(C)]
+#[repr(packed)]
pub struct GateDescriptor64 {
pub offset_1: u16,
pub selector: u16,
diff --git a/src/lib.rs b/src/lib.rs
index 0d2fb02..f1499c4 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,5 +1,6 @@
#![allow(dead_code)]
#![allow(unused_imports)]
+#![allow(unexpected_cfgs)]
#![no_std]
#![no_main]
#![feature(const_option)]