summaryrefslogtreecommitdiff
path: root/libcpu/mips/common/stack.c
diff options
context:
space:
mode:
authorguozhanxin <[email protected]>2021-03-31 13:59:58 +0800
committerguozhanxin <[email protected]>2021-03-31 14:00:09 +0800
commitd49cc6452406d70ce7a2e2acce786fbe697673b9 (patch)
treeddb998772a7915a57ab93b8b52953c99259c3696 /libcpu/mips/common/stack.c
parentf9be3c80e3631ebfc1ecc3e1f1d2df21277c0608 (diff)
parent61be3180f57bcb58a7a62acb67e3179934d500b8 (diff)
Merge remote-tracking branch 'remotes/origin/master' into add_error_check
Diffstat (limited to 'libcpu/mips/common/stack.c')
-rw-r--r--libcpu/mips/common/stack.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libcpu/mips/common/stack.c b/libcpu/mips/common/stack.c
index b933b184e7..3f9010837a 100644
--- a/libcpu/mips/common/stack.c
+++ b/libcpu/mips/common/stack.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2019, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -47,15 +47,15 @@ rt_uint8_t *rt_hw_stack_init(void *tentry, void *parameter, rt_uint8_t *stack_ad
pt->regs[REG_FP] = (rt_ubase_t)0x0;
pt->regs[REG_RA] = (rt_ubase_t)texit;
- pt->hi = 0x0;
- pt->lo = 0x0;
+ pt->hi = 0x0;
+ pt->lo = 0x0;
pt->cp0_status = (ST0_IE | ST0_CU0 | ST0_IM);
#ifdef RT_USING_FPU
pt->cp0_status |= (ST0_CU1 | ST0_FR);
#endif
- pt->cp0_cause = read_c0_cause();
- pt->cp0_epc = (rt_ubase_t)tentry;
- pt->cp0_badvaddr = 0x0;
+ pt->cp0_cause = read_c0_cause();
+ pt->cp0_epc = (rt_ubase_t)tentry;
+ pt->cp0_badvaddr = 0x0;
return stk;
}