Re: Page table walk on TLB miss

From: Lars Heidieker <lars_at_heidieker.de>
Date: Thu, 14 Dec 2006 20:55:18 +0000
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On 14 Dec 2006, at 19:30, Martin Cracauer wrote:

> Can somebody explain how the MMU walks the page table in RAM when
> there is a TLB miss and where the FreeBSD code is that sets up the
> tables?
>
> Is there actual OS code involved in the walking or does the OS just
> set up the code and the MMU walks on it's own?
>
> Mostly interested in AMD64.
>
>
In case of i386/amd64 the mmu walks the pagetables on it's on  
(hardware page table walk).
The walking is done with physical addresses starting at the physical  
address stored in the cr3 register of the cpu.

Yes other cpus do this completely different UltraSPARC eg has a  
Software Table walk the cpu traps simply on aTSB miss
and the rest is up to the OS.

- --

Viele Grüße,
Lars Heidieker

lars_at_heidieker.de
http://paradoxon.info

- ------------------------------------

Mystische Erklärungen.
Die mystischen Erklärungen gelten für tief;
die Wahrheit ist, dass sie noch nicht einmal oberflächlich sind.
      -- Friedrich Nietzsche



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFFgbo2cxuYqjT7GRYRAg0TAKCSr/jIUkS/Q2+bfst8LDbGEuZy7wCfVvkT
OEJyC8xTCdfoOr1sfeYVEMk=
=5TQh
-----END PGP SIGNATURE-----
Received on Thu Dec 14 2006 - 19:56:26 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:03 UTC