MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / rt_hw_stack_init

Function rt_hw_stack_init

libcpu/sim/posix/cpu_port.c:219–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217
218
219rt_uint8_t *rt_hw_stack_init(
220 void *pEntry,
221 void *pParam,
222 rt_uint8_t *pStackAddr,
223 void *pExit)
224{
225 thread_t *thread;
226
227 thread = (thread_t *)(pStackAddr - sizeof(thread_t));
228
229 /* set the filed to zero */
230 memset(thread, 0x00, sizeof(thread_t));
231
232 thread_create(thread, pEntry, pParam, pExit);
233 //TRACE("thread %x created\n", (unsigned int)thread_table[t].pthread);
234
235 return (rt_uint8_t *) thread;
236}
237
238rt_base_t rt_hw_interrupt_disable(void)
239{

Callers

nothing calls this directly

Calls 1

thread_createFunction · 0.85

Tested by

no test coverage detected