]> git.lizzy.rs Git - plan9front.git/commit
pc64: avoid getcr3() in mmuflushtlb()
authorcinap_lenrek <cinap_lenrek@felloff.net>
Wed, 12 May 2021 20:40:51 +0000 (22:40 +0200)
committercinap_lenrek <cinap_lenrek@felloff.net>
Wed, 12 May 2021 20:40:51 +0000 (22:40 +0200)
commit15b903c4e187b82d6dd01b8284b244945522c06d
tree6b67d07615dd97d0031b507ca70953e66be53531
parent18b3847aef8428503b8889b3a986d38e5e6ed584
pc64: avoid getcr3() in mmuflushtlb()

it turns out that calculating physical address of pml4 is faster
than reading the machine register, so pass it explicitely.
sys/src/9/pc64/fns.h
sys/src/9/pc64/main.c
sys/src/9/pc64/mmu.c