MCPcopy Create free account
hub / github.com/DISTORTEC/distortos / initialize

Method initialize

source/scheduler/Stack.cpp:131–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129}
130
131int Stack::initialize(RunnableThread& runnableThread)
132{
133 std::fill_n(static_cast<std::decay<decltype(stackSentinel)>::type*>(adjustedStorage_),
134 adjustedSize_ / sizeof(stackSentinel), stackSentinel);
135 int ret;
136 std::tie(ret, stackPointer_) =
137 architecture::initializeStack(static_cast<uint8_t*>(adjustedStorage_) + stackGuardSize, getSize(),
138 runnableThread);
139 return ret;
140}
141
142} // namespace internal
143

Callers 1

lowLevelInitializerMethod · 0.45

Calls 1

initializeStackFunction · 0.85

Tested by

no test coverage detected