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

Function rt_hw_cpu_shutdown

libcpu/risc-v/common64/cpuport.c:123–134  ·  view source on GitHub ↗

shutdown CPU */

Source from the content-addressed store, hash-verified

121
122/** shutdown CPU */
123void rt_hw_cpu_shutdown(void)
124{
125 rt_uint32_t level;
126 rt_kprintf("shutdown...\n");
127
128 level = rt_hw_interrupt_disable();
129
130 sbi_shutdown();
131
132 while (1)
133 ;
134}
135
136void rt_hw_set_process_id(int pid)
137{

Callers 1

handle_nested_trap_panicFunction · 0.70

Calls 3

rt_kprintfFunction · 0.85
sbi_shutdownFunction · 0.85
rt_hw_interrupt_disableFunction · 0.50

Tested by

no test coverage detected