From eb22fab233e2e5c61ca6a5e198b7dd8b5b09bc0a Mon Sep 17 00:00:00 2001 From: Tom Dohrmann Date: Mon, 11 Nov 2024 19:05:02 +0100 Subject: [PATCH] remove unused fields in PerCpu --- tee/kernel/src/per_cpu.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tee/kernel/src/per_cpu.rs b/tee/kernel/src/per_cpu.rs index eef5d43f..88a22b94 100644 --- a/tee/kernel/src/per_cpu.rs +++ b/tee/kernel/src/per_cpu.rs @@ -10,7 +10,7 @@ use alloc::sync::Arc; use constants::{ApIndex, MAX_APS_COUNT}; use x86_64::{ registers::segmentation::{Segment64, GS}, - structures::{gdt::GlobalDescriptorTable, paging::Page, tss::TaskStateSegment}, + structures::{gdt::GlobalDescriptorTable, tss::TaskStateSegment}, VirtAddr, }; @@ -28,10 +28,8 @@ pub struct PerCpu { pub idx: ApIndex, pub kernel_registers: Cell, pub new_userspace_registers: Cell, - pub temporary_mapping: OnceCell>, pub tss: OnceCell, pub gdt: OnceCell, - pub int0x80_handler: Cell, pub exit_with_sysret: Cell, pub exit: Cell, pub vector: Cell, @@ -47,10 +45,8 @@ impl PerCpu { idx: ApIndex::new(0), kernel_registers: Cell::new(KernelRegisters::ZERO), new_userspace_registers: Cell::new(Registers::ZERO), - temporary_mapping: OnceCell::new(), tss: OnceCell::new(), gdt: OnceCell::new(), - int0x80_handler: Cell::new(0), exit_with_sysret: Cell::new(false), exit: Cell::new(RawExit::Syscall), vector: Cell::new(0),