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/mips/common/exception.c | |
| parent | 5fa15a19a0917e762c8d10207544f2a0396fd15b (diff) | |
uniform code writing-disable interrupt
Diffstat (limited to 'libcpu/mips/common/exception.c')
| -rw-r--r-- | libcpu/mips/common/exception.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcpu/mips/common/exception.c b/libcpu/mips/common/exception.c index 9c9858f5e1..ca048a926b 100644 --- a/libcpu/mips/common/exception.c +++ b/libcpu/mips/common/exception.c @@ -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; } |
