Re: Does the kernel code run through the MMU and page tables?



for x86, yes
when the protected mode is set, the MMU works. and all addresses are
required to be translated into physical address, even the kernel. Read
System.map and the link script in arch/i386/kernel/, the answer is
there.

"xu_feng_xu@xxxxxxxxx 写道:
"
Hi,
Does the kernel code run through the MMU and page tables?

My expectation was No as among others there is no need to relocate
dynamically the kernel code and associated data if paging for instance
is used. The kernel code consists of a set of pre known processes that
are loaded in a pre-set area in the memory. If the code runs through
MMU and page tables, this will slow down the kernel code execution.

I read that in the coming 64-bit machine, inverted page table will be
used to do the translation. If
the kernel code is running through the MMU and inverted page table, do
the systems allocate a single "inverted page table" for both user
processes and kernel processes or instead one for each type


thanks

.



Relevant Pages

  • Re: ARM9 boot up
    ... the boot pins. ... The MMU is off when the processor is reset. ... Search for the kernel. ...
    (comp.arch.embedded)
  • Re: forth and virtual memory
    ... Using a file-backed memory area and relying on the kernel and ... part which handles the MMU tries to do smart ... in which not only the RAM is used as a cache over the ... programming did not wait for him to get the point. ...
    (comp.lang.forth)
  • Re: forth and virtual memory
    ... Using a file-backed memory area and relying on the kernel and ... part which handles the MMU tries to do smart ... in which not only the RAM is used as a cache over the ... programming did not wait for him to get the point. ...
    (comp.lang.forth)
  • Re: forth and virtual memory
    ... Using a file-backed memory area and relying on the kernel and ... part which handles the MMU tries to do smart ... in which not only the RAM is used as a cache over the ... programming did not wait for him to get the point. ...
    (comp.lang.forth)
  • Re: ARM9 boot up
    ... The MMU is off when the processor is reset. ... Initialize various devices. ... Search for the kernel. ...
    (comp.arch.embedded)