diff options
| author | thewon86 <[email protected]> | 2022-04-20 10:56:11 +0800 |
|---|---|---|
| committer | guo <[email protected]> | 2022-04-20 14:22:43 +0800 |
| commit | f5b0bfd3f4f450424b5bc1f084959d0436c8a6e6 (patch) | |
| tree | 1081304c855cd4002a7f460e59561415bf3e95c1 /libcpu/aarch64 | |
| parent | 5fa15a19a0917e762c8d10207544f2a0396fd15b (diff) | |
uniform code writing-disable interrupt
Diffstat (limited to 'libcpu/aarch64')
| -rw-r--r-- | libcpu/aarch64/common/cpu.c | 2 | ||||
| -rw-r--r-- | libcpu/aarch64/common/mmu.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libcpu/aarch64/common/cpu.c b/libcpu/aarch64/common/cpu.c index 3fb6c4c3d1..8dc6635ef4 100644 --- a/libcpu/aarch64/common/cpu.c +++ b/libcpu/aarch64/common/cpu.c @@ -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(); diff --git a/libcpu/aarch64/common/mmu.c b/libcpu/aarch64/common/mmu.c index 59292c6db2..777a0a5b1a 100644 --- a/libcpu/aarch64/common/mmu.c +++ b/libcpu/aarch64/common/mmu.c @@ -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); |
