Skip to content

Commit

Permalink
remove clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
stlankes committed Feb 16, 2024
1 parent 5fb048b commit 85e2220
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/scheduler/task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,7 @@ pub(crate) struct Task {
/// Last stack pointer on the user stack before jumping to kernel space
pub user_stack_pointer: VirtAddr,
/// Last FPU state before a context switch to another task using the FPU
#[cfg(any(target_arch = "x86_64", target_arch = "riscv64"))]
pub last_fpu_state: arch::processor::FPUState,
/// ID of the core this task is running on
pub core_id: CoreId,
Expand Down Expand Up @@ -410,6 +411,7 @@ impl Task {
prio: task_prio,
last_stack_pointer: VirtAddr(0u64),
user_stack_pointer: VirtAddr(0u64),
#[cfg(any(target_arch = "x86_64", target_arch = "riscv64"))]
last_fpu_state: arch::processor::FPUState::new(),
core_id,
stacks,
Expand All @@ -431,6 +433,7 @@ impl Task {
prio: IDLE_PRIO,
last_stack_pointer: VirtAddr(0u64),
user_stack_pointer: VirtAddr(0u64),
#[cfg(any(target_arch = "x86_64", target_arch = "riscv64"))]
last_fpu_state: arch::processor::FPUState::new(),
core_id,
stacks: TaskStacks::from_boot_stacks(),
Expand Down

0 comments on commit 85e2220

Please sign in to comment.