mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-20 17:44:20 +08:00
uniform code writing-disable interrupt
This commit is contained in:
@@ -61,7 +61,7 @@ const char *exception_name[] = {
|
||||
|
||||
rt_base_t rt_hw_interrupt_disable(void)
|
||||
{
|
||||
rt_base_t status = read_c0_status();
|
||||
register rt_base_t status = read_c0_status();
|
||||
clear_c0_status(ST0_IE);
|
||||
return status;
|
||||
}
|
||||
|
||||
@@ -803,7 +803,8 @@ void *rt_hw_mmu_v2p(rt_mmu_info *mmu_info, void* v_addr)
|
||||
}
|
||||
|
||||
#ifdef RT_USING_USERSPACE
|
||||
void init_mm_setup(unsigned int *mtbl, unsigned int size, unsigned int pv_off) {
|
||||
void init_mm_setup(unsigned int *mtbl, unsigned int size, unsigned int pv_off)
|
||||
{
|
||||
unsigned int va;
|
||||
|
||||
for (va = 0; va < 0x1000; va++) {
|
||||
|
||||
Reference in New Issue
Block a user