The values in the prev and intpri fields help in determining whether the processor is running a thread or an interrupt handler.
prev和intpri字段中的值帮助判断处理器是在运行线程还是在运行中断处理程序。
You set some registers and issue a system call instruction (or an interrupt) and have the kernel code called directly from the trap handler.
你可以设置一些寄存器,并发出一个系统调用指令(或中断),并由陷阱处理程序直接调用内核代码。
应用推荐