- 论坛徽章:
- 0
|
cskyrain 发表于 2009-11-25 12:14 ![]()
呵呵,又翻了翻书,思考了一下,由于时间问题,没心情再从头读ulk,只是跳着查了一下,难免会漏下很多东西, ...
在ULK的4.6.1.4Multiple Kernel Mode Stacks中写到:
If the size of the thread_union structure is 8KB, the Kernel Mode stack of the current process is used for every type of kernel control path: exceptions, interrupts, and deferrable functions. Conversely, if the size of the thread_union structure is 4KB, the kernel makes uses of three types of Kernel Mode stacks:
...
...
Thus, hard IRQ stacks and soft IRQ stacks are very similar to the exception stacks described in the section "Identifying a Process" in Chapter 3; the only difference is that the thread_info structure coupled with each stack is associated with a CPU rather a process.
所以说根据这些描述推断 cskyrain 阐述的 “第二中情况 中断不是用单独的中断栈, 而是使用当前进程的内核栈 ” 是对的~ ^_^ 不知是不是这样?(我刚开始研究内核没两个月) |
|