Why is kernel mapped to the same address space as processes?

前端 未结 4 1872
没有蜡笔的小新
没有蜡笔的小新 2020-12-13 00:56

This is a question to elaborate on this one: Why is kernel said to be in process address space?

This might be a silly question but it just popped up i

4条回答
  •  执笔经年
    2020-12-13 01:48

    Imagine what would happen if the kernel is not mapped in each process address space.It would triple fault because say the timer interrupt occurs,then the processor calls the ISR routine using IDT(Interrupt Descriptor Table).If the kernel is not mapped then the IDT address becomes invalid and thus a triple fault will result.

提交回复
热议问题