mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-21 10:36:04 +08:00
uniform code writing-disable interrupt
This commit is contained in:
@@ -98,7 +98,7 @@ void rt_hw_spin_unlock(rt_hw_spinlock_t *lock)
|
||||
/** shutdown CPU */
|
||||
RT_WEAK void rt_hw_cpu_shutdown()
|
||||
{
|
||||
rt_uint32_t level;
|
||||
register rt_int32_t level;
|
||||
rt_kprintf("shutdown...\n");
|
||||
|
||||
level = rt_hw_interrupt_disable();
|
||||
|
||||
@@ -240,7 +240,7 @@ void rt_hw_mmu_init(void)
|
||||
int rt_hw_mmu_map(unsigned long addr, unsigned long size, unsigned long attr)
|
||||
{
|
||||
int ret;
|
||||
rt_ubase_t level;
|
||||
rt_base_t level;
|
||||
|
||||
level = rt_hw_interrupt_disable();
|
||||
ret = rt_hw_mmu_setmtt(addr, addr + size, addr, attr);
|
||||
|
||||
Reference in New Issue
Block a user