3 segflush \- flush instruction and data caches
10 int segflush(void *va, ulong len)
14 invalidates any instruction cache and writes back any data
15 cache associated with pages contained in a segment.
16 All subsequent new pages in the segment will also be flushed when first referenced.
19 is an address within the segment to be flushed;
20 it is rounded down to the nearest page boundary.
22 specifies the length in bytes of
25 is rounded up to the nearest page boundary.
27 works correctly when the memory straddles multiple segments.
31 depends on an understanding of the cache architecture of the specific
34 .B /sys/src/libc/9syscall