MCPcopy Create free account
hub / github.com/Simple-XX/SimpleKernel / GetCurrentCoreEnv

Method GetCurrentCoreEnv

tests/unit_test/mocks/test_environment_state.cpp:99–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99auto TestEnvironmentState::GetCurrentCoreEnv() -> CoreEnvironment& {
100 auto tid = std::this_thread::get_id();
101 size_t core_id = GetCoreIdForThread(tid);
102 std::lock_guard<std::mutex> lock(map_mutex_);
103 return cores_[core_id];
104}
105
106void TestEnvironmentState::RegisterTaskContext(void* context_ptr,
107 TaskControlBlock* task) {

Callers 7

switch_toFunction · 0.80
EnableInterruptFunction · 0.80
DisableInterruptFunction · 0.80
GetInterruptStatusFunction · 0.80
SetPageDirectoryFunction · 0.80
GetPageDirectoryFunction · 0.80
EnablePageFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected