bl30: rtos_sdk delete mie enable when setup internal timer [1/1]
PD#SWPL-128578
Problem:
Enable MIE before task schedule may destroy task stack if
there has already a irq pending in the irq controller, which
causeing the task schedule fail.
Solution:
Delete MIE enable when setup internal timer before task
schedule.
Verify:
t3x_bc302
Change-Id: Ie8aff92c1b59083dfb6b021ef922879f864d490a
Signed-off-by: bangzheng.liu <bangzheng.liu@amlogic.com>
diff --git a/GCC/AML_RISC-V/port.c b/GCC/AML_RISC-V/port.c
index 8646197..fee8874 100755
--- a/GCC/AML_RISC-V/port.c
+++ b/GCC/AML_RISC-V/port.c
@@ -357,8 +357,6 @@
//eclic_set_nlbits(4);
//eclic_set_irq_lvl_abs(ECLIC_INT_MTIP,1);
eclic_set_intctrl(ECLIC_INT_MTIP, 10 << 4);
-
- set_csr(mstatus, MSTATUS_MIE);
#endif
#endif
}