From a0944efb047b0789598edc6236c0287d10aeab60 Mon Sep 17 00:00:00 2001 From: Tianhao Wang Date: Thu, 18 Apr 2024 04:28:53 +0200 Subject: chore --- src/arch/x86_64/context.rs | 2 +- src/arch/x86_64/interrupt/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/arch/x86_64/context.rs b/src/arch/x86_64/context.rs index 37b6c2f..6c46271 100644 --- a/src/arch/x86_64/context.rs +++ b/src/arch/x86_64/context.rs @@ -23,6 +23,6 @@ pub unsafe fn settle() { // regs->rsp = sp; } -pub unsafe fn switch(ctx_curr: usize, ctx_next: usize) { +pub unsafe fn switch(_ctx_curr: usize, _ctx_next: usize) { todo!() } diff --git a/src/arch/x86_64/interrupt/mod.rs b/src/arch/x86_64/interrupt/mod.rs index d961480..7e0cbb8 100644 --- a/src/arch/x86_64/interrupt/mod.rs +++ b/src/arch/x86_64/interrupt/mod.rs @@ -57,7 +57,7 @@ impl GateDescriptor64 { #[no_mangle] #[cfg(target_arch = "x86_64")] -extern "C" fn interrupt_gate(slot: u16) { +extern "C" fn interrupt_gate(_slot: u16) { interrupt_disable(); // NOTE: the interrupt handler should NEVER block on a lock; in this case // the CGA screen is protected by a spinlock. The lock holder will never be -- cgit v1.2.3-70-g09d2