summaryrefslogtreecommitdiff
path: root/libcpu/risc-v/e310/stack.c
diff options
context:
space:
mode:
authorzhangjun <[email protected]>2017-07-31 12:05:45 +0800
committerzhangjun <[email protected]>2017-07-31 12:05:45 +0800
commit72cfe9dd686d5b3568173fbe6b5509fd7e072fca (patch)
tree9a3818fa87de23a33deb7260cc39daae22ebc0d0 /libcpu/risc-v/e310/stack.c
parent20f581a60d88f0a153750128eaa62281e9647e26 (diff)
modify: drivers/cpuusage.c
modify: ../../libcpu/risc-v/e310/stack.c rmove unused macro definition modify: ../../src/idle.c Return to the original version
Diffstat (limited to 'libcpu/risc-v/e310/stack.c')
-rw-r--r--libcpu/risc-v/e310/stack.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/libcpu/risc-v/e310/stack.c b/libcpu/risc-v/e310/stack.c
index eab608c753..a86fae70ff 100644
--- a/libcpu/risc-v/e310/stack.c
+++ b/libcpu/risc-v/e310/stack.c
@@ -19,22 +19,10 @@
*
* Change Logs:
* Date Author Notes
- * 2011-01-13 weety copy from mini2440
+ * 2017-07-31 zhangjun copy from mini2440
*/
#include <rtthread.h>
-/*****************************/
-/* CPU Mode */
-/*****************************/
-#define USERMODE 0x10
-#define FIQMODE 0x11
-#define IRQMODE 0x12
-#define SVCMODE 0x13
-#define ABORTMODE 0x17
-#define UNDEFMODE 0x1b
-#define MODEMASK 0x1f
-#define NOINT 0xc0
-
/**
* This function will initialize thread stack
*
@@ -86,7 +74,7 @@ rt_uint8_t *rt_hw_stack_init(void *tentry, void *parameter,
*(--stk) = 0xffffffff; /* t6 */
*(--stk) = 0xffffffff; /* tp */
*(--stk) = 0xffffffff; /* gp */
- *(--stk) = 0x880; /* mie */
+ *(--stk) = 0x880; /* mie */
// *(--stk) = (rt_uint32_t)parameter; /* r0 : argument */
/* return task's current stack address */
return (rt_uint8_t *)stk;