SimpleKernel 1.17.0
Loading...
Searching...
No Matches
test_env::CoreEnvironment Struct Reference

单个核心的环境状态 More...

#include <test_environment_state.hpp>

Collaboration diagram for test_env::CoreEnvironment:
Collaboration graph

Classes

struct  SwitchEvent
 

Public Member Functions

 CoreEnvironment (size_t id=0)
 

Public Attributes

size_t core_id = 0
 
bool interrupt_enabled = true
 
uint64_t page_directory = 0
 
bool paging_enabled = false
 
std::vector< SwitchEventswitch_history
 
std::thread::id thread_id
 

Detailed Description

单个核心的环境状态

Definition at line 24 of file test_environment_state.hpp.

Constructor & Destructor Documentation

◆ CoreEnvironment()

test_env::CoreEnvironment::CoreEnvironment ( size_t  id = 0)
inlineexplicit

Definition at line 53 of file test_environment_state.hpp.

Member Data Documentation

◆ core_id

size_t test_env::CoreEnvironment::core_id = 0

Definition at line 26 of file test_environment_state.hpp.

◆ interrupt_enabled

bool test_env::CoreEnvironment::interrupt_enabled = true

Definition at line 29 of file test_environment_state.hpp.

◆ page_directory

uint64_t test_env::CoreEnvironment::page_directory = 0

Definition at line 32 of file test_environment_state.hpp.

◆ paging_enabled

bool test_env::CoreEnvironment::paging_enabled = false

Definition at line 34 of file test_environment_state.hpp.

◆ switch_history

std::vector<SwitchEvent> test_env::CoreEnvironment::switch_history

Definition at line 47 of file test_environment_state.hpp.

◆ thread_id

std::thread::id test_env::CoreEnvironment::thread_id

Definition at line 50 of file test_environment_state.hpp.


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