oxidecomputer / phbl

Pico Host Boot Loader
Mozilla Public License 2.0
98 stars 7 forks source link

allocator: align arena on 4KiB boundaries #47

Closed dancrossnyc closed 6 months ago

dancrossnyc commented 6 months ago

I noticed when moving the BSS around that the page allocator for building page tables (e.g., for mapping the kernel) was inheriting a region that was not 4KiB aligned. The simplest fix was just to constrain the allocator itself to be aligned on a 4K boundary, and there was no reason not to do this.

dancrossnyc commented 6 months ago

Tested on sn6 (thanks, Andy!).