xref: /nrf52832-nimble/rt-thread/libcpu/arm/realview-a8-vmm/cpu.c (revision 104654410c56c573564690304ae786df310c91fc)
1 /*
2  * Copyright (c) 2006-2018, RT-Thread Development Team
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  *
6  * Change Logs:
7  * Date           Author       Notes
8  * 2011-09-15     Bernard      first version
9  */
10 
11 #include <rthw.h>
12 #include <rtthread.h>
13 #include <board.h>
14 
15 /**
16  * @addtogroup AM33xx
17  */
18 /*@{*/
19 
20 /** shutdown CPU */
rt_hw_cpu_shutdown()21 void rt_hw_cpu_shutdown()
22 {
23 	rt_uint32_t level;
24 	rt_kprintf("shutdown...\n");
25 
26 	level = rt_hw_interrupt_disable();
27 	while (level)
28 	{
29 		RT_ASSERT(0);
30 	}
31 }
32 
33 /*@}*/
34