Skip to content

Map Linux MAP_HUGE_* flags to FreeBSD alignment - #7

Open
arieleren wants to merge 1 commit into
freebsd:mainfrom
arieleren:add-map-huge-1gb
Open

Map Linux MAP_HUGE_* flags to FreeBSD alignment#7
arieleren wants to merge 1 commit into
freebsd:mainfrom
arieleren:add-map-huge-1gb

Conversation

@arieleren

Copy link
Copy Markdown

MAP_HUGETLB is already stubbed to 0. Linux also uses MAP_HUGE_1GB and MAP_HUGE_2MB to select the huge page size. Define them as MAP_ALIGNED(30) and MAP_ALIGNED(21) so those mmap flags compile and request matching alignment. This is not a hugepage reservation.

MAP_HUGETLB is already stubbed to 0. Linux also uses MAP_HUGE_1GB and
MAP_HUGE_2MB to select the huge page size. Define them as MAP_ALIGNED(30)
and MAP_ALIGNED(21) so those mmap flags compile and request matching
alignment. This is not a hugepage reservation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants