|
|
|
|
|
by amluto
2707 days ago
|
|
I think you may be a bit confused here. PCID is a feature that lets the kernel avoid a TLB when CR3 is written. With or without PCID, CR3 gets written. The segment registers have nothing whatsoever to do with this on a 64-bit system. |
|
Some segment registers are reloaded on a 64-bit system. That includes CS, DS, SS, and GS. The 32-bit systems must additionally reload ES. All segment registers are loaded for Linux 2.0 and older, via hardware task switching.
CR3 does not get written for system calls when running on a normal Linux from version 2.2 until the meltdown workaround hit.