MOS Source Code
Loading...
Searching...
No Matches
cpu_t Struct Reference

#include <platform.hpp>

+ Collaboration diagram for cpu_t:

Public Attributes

u32 id
 
Threadthread
 
ptr_t scheduler_stack
 
MMContextmm_context = &mos_kernel_mm
 
platform_regs_tinterrupt_regs
 the registers of whatever interrupted this CPU
 
platform_cpuinfo_t cpuinfo
 
Threadidle_thread
 idle thread for this CPU
 

Detailed Description

Definition at line 72 of file platform.hpp.

Member Data Documentation

◆ id

u32 id

Definition at line 74 of file platform.hpp.

◆ thread

Thread* thread

Definition at line 75 of file platform.hpp.

◆ scheduler_stack

ptr_t scheduler_stack

Definition at line 76 of file platform.hpp.

◆ mm_context

MMContext* mm_context = &mos_kernel_mm

Definition at line 77 of file platform.hpp.

Referenced by reschedule().

◆ interrupt_regs

platform_regs_t* interrupt_regs

the registers of whatever interrupted this CPU

Definition at line 78 of file platform.hpp.

◆ cpuinfo

Definition at line 79 of file platform.hpp.

◆ idle_thread

Thread* idle_thread

idle thread for this CPU

Definition at line 80 of file platform.hpp.

Referenced by reschedule().


The documentation for this struct was generated from the following file: