summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/sshbuf-getput-basic.c
diff options
context:
space:
mode:
authordrahn <drahn@openbsd.org>2019-07-13 21:31:59 +0000
committerdrahn <drahn@openbsd.org>2019-07-13 21:31:59 +0000
commit6db89ad9a09ceba26638071ef63a8bf667d16a2f (patch)
treec82ccd52550a04fc155236d219981632a780db29 /usr.bin/ssh/sshbuf-getput-basic.c
parentpmap_page_protect() should not unmap pages after making them readonly. (diff)
downloadwireguard-openbsd-6db89ad9a09ceba26638071ef63a8bf667d16a2f.tar.xz
wireguard-openbsd-6db89ad9a09ceba26638071ef63a8bf667d16a2f.zip
Adjust the pmap_set_l* functions to a more reasonable API,
the lX_pa parameter was never called with a known physical address, the called function always needed to look up that data. When this was originally written, it was expected to be used in another path where the virtual and physical were both known, but that other path was rewritten at some point (likely that old path was early kernel table init, before pmap_extract is available). Instead of making the function perform a table walk pass the pmapvpX pointer to the table that the new entry will be inserted. This table is already known and in a local register, so no point in performing that lookup again. ok kettenis@
Diffstat (limited to 'usr.bin/ssh/sshbuf-getput-basic.c')
0 files changed, 0 insertions, 0 deletions