summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/server-fn.c
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2009-08-11 17:15:55 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2009-08-11 17:15:55 +0000
commit98b05a003a84406b2feccb22b9cd67bae0c215c7 (patch)
tree8ffc766dcda9f986475939c1e1e6747c19eb4d54 /usr.bin/tmux/server-fn.c
parent6900534ae3a09df07b8422e0a7e7d9f24493d9c5 (diff)
fix some stupidity in x86 bus_space_map.
right now, we do a pmap_kenter_pa(), we then get the pte (behind pmap's back) and check for the cache inhibit bit (if needed). If it isn't what we want (this is the normal case) then we change it ourselves, and do a manual tlb shootdown (i386 was a bit more stupid about it than amd64, too). Instead, make it so that like on some other archs (sparc64 comes to mind) you can pass in flags in the low bits of the physical address, pmap then does everything correctly for you. Discovered this when I had some code doing a lot of bus_space_maps(), it was incredibly slow, and profilling was dominated by pmap_tlb_shootwait(); discussed with kettenis@, miod@, toby@ and art@. ok art@
Diffstat (limited to 'usr.bin/tmux/server-fn.c')
0 files changed, 0 insertions, 0 deletions