summaryrefslogtreecommitdiff
path: root/usr.bin/msgs/msgs.c
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2002-09-23 01:50:32 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2002-09-23 01:50:32 +0000
commite5c537e48a40d69509c6f79c53a8eb9d80ea3ef7 (patch)
tree2417dcf57fca527a693cde6f56c2d595cd2313b3 /usr.bin/msgs/msgs.c
parent68e2f6f5dbedde3a48641b57c08fcd716c30aed3 (diff)
In an ELF binary the end of the text segment and the start of the data
segment can share the same page in the file. Since we can't mmap it with the same permissions, the data segment is loaded offset by a constant so that it ends up in a different page. On sparc that's not really enough. To avoid cache aliases we have to make the offset big enough to make sure that we don't get incoherent aliases that would have to be mapped uncached. This offset has been 64k this far and noone noticed until some change actually made us fault in those pages at the same time and incoherent aliases reduced make build time on some hypersparcs (only hypersparcs have big enough caches to notice this) from 14 hours to 23 hours. Bump that offset (MAXPAGESIZE) to 1MB. deraadt@ ok
Diffstat (limited to 'usr.bin/msgs/msgs.c')
0 files changed, 0 insertions, 0 deletions