Patent ID: 11880706
Assignee: NANJING QINHENG MICROELECTRONICS CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G  Y | IPC G

Claim 6:
7. The interrupt control method based on RISC-V according to claim 1, further comprising a task switching interrupt, wherein the task switching interrupt comprises the following steps of:
(b1) searching, by a task scheduler, a ready task with a highest priority in a task ready list, and determining a new task to be switched;
(b2) saving an original task context to an original task stack space; and
(b3) masking all interrupts; and after the interrupts are masked, popping up a context content from a new task stack space, returning to a breakpoint of a new task through an interrupt return instruction and executione, and releasing interrupt masking.