Re: [PATCH] gnumach: vm_allocate_contiguous: Allow small power 2 alignments

2022-08-21 Thread Samuel Thibault
Applied, thanks! Damien Zammit, le dim. 21 août 2022 06:58:54 +, a ecrit: > This allows contiguous allocations aligned to values > smaller than one page, but still a power of 2, > by forcing the alignment to be to the nearest page. > > This works because PAGE_SIZE is a power of two. > > ---

[PATCH] gnumach: vm_allocate_contiguous: Allow small power 2 alignments

2022-08-20 Thread Damien Zammit
This allows contiguous allocations aligned to values smaller than one page, but still a power of 2, by forcing the alignment to be to the nearest page. This works because PAGE_SIZE is a power of two. --- vm/vm_user.c | 4 1 file changed, 4 insertions(+) diff --git a/vm/vm_user.c b/vm/vm_us