summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authormikeb <mikeb@openbsd.org>2012-08-01 15:44:14 +0000
committermikeb <mikeb@openbsd.org>2012-08-01 15:44:14 +0000
commit20d96320a46a8a34388dd3e5a37f1fdbc7d51d44 (patch)
treeae34385700d2cbc6b517a89ea8d3fb967c9b7dd1 /lib/libc
parentRevert previous change, and don't set IFM_AVALID | IFM_ACTIVE in ifm_status (diff)
downloadwireguard-openbsd-20d96320a46a8a34388dd3e5a37f1fdbc7d51d44.tar.xz
wireguard-openbsd-20d96320a46a8a34388dd3e5a37f1fdbc7d51d44.zip
Use mtrrmask instead of hardcoded values to accommodate newer CPUs
with a large physical address size (greater than 36 bit). Fixes a major performance hit seen on newer servers where an incorrectly programmed memory region length affects the PCI device mappings. While here, make sure to invalidate the TLB after programming MSRs and fix an incorrect behavior found by deraadt@ where MTRRdefType was updated outside of the protected region. The fix was partly obtained from FreeBSD, tested by many. With and OK deraadt
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions