2021-02-21 | Paul Boddie | raw annotate files changeset graph | Constrain the receive flexpage size to appropriate sizes. If the receive flexpage is constrained by the maximum offset to an intermediate size (not a power of two page size multiple such as 1, 2, 4, 8...) then too large a flexpage will be sent and the "hot spot" incorrectly divided, resulting in stray accesses to neighbouring pages. |
1 #pragma once 2 3 #include <l4/sys/ipc.h> 4 5 #include "flexpage.h" 6 7 8 9 long ipc_prepare_flexpage(Flexpage *flexpage, unsigned long offset, 10 unsigned long max_offset, l4_addr_t hot_spot, 11 l4_snd_fpage_t *region); 12 13 void ipc_unmap_flexpage(Flexpage *flexpage); 14 15 // vim: tabstop=4 expandtab shiftwidth=4