arch/risc-v/src/k210/k210_irq.c
/****************************************************************************
 * Name: riscv_get_newintctx
 *
 * Description:
 *   Return initial mstatus when a task is created.
 *
 ****************************************************************************/
riscv_get_newintctx
Description:
Return initial mstatus when a task is created.
riscv_get_newintctx Description : Return initial mstatus when a task is created .
uint32_t riscv_get_newintctx(void)
{
  return (MSTATUS_MPPM | MSTATUS_MPIE);
}
uint32_t riscv_get_newintctx ( void ) { return ( MSTATUS_MPPM | MSTATUS_MPIE ) ; }
Name: riscv_get_newintctx
 Description:
   Return initial mstatus when a task is created.
Name : riscv_get_newintctx Description : Return initial mstatus when a task is created .
/* Set machine previous privilege mode to machine mode. Reegardless of
   * how NuttX is configured and of what kind of thread is being started.
   * That is because all threads, even user-mode threads will start in
   * kernel trampoline at nxtask_start() or pthread_start().
   * The thread's privileges will be dropped before transitioning to
   * user code. Also set machine previous interrupt enable.
   */