aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTianhao Wang <shrik3@mailbox.org>2024-04-18 04:28:53 +0200
committerTianhao Wang <shrik3@mailbox.org>2024-06-11 15:16:34 +0200
commita0944efb047b0789598edc6236c0287d10aeab60 (patch)
treeb6c0e0bac72de3d12d747da7042fdba243d4b0fd /src
parent26c7262747930cebbd20dd7194f1245798bacdf6 (diff)
chore
Diffstat (limited to 'src')
-rw-r--r--src/arch/x86_64/context.rs2
-rw-r--r--src/arch/x86_64/interrupt/mod.rs2
2 files changed, 2 insertions, 2 deletions
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