Make the loader runs on 16k page size kernel with SCons (2)#16
Make the loader runs on 16k page size kernel with SCons (2)#16illwieckz wants to merge 2 commits into
Conversation
…tstrap with a different page size
Build arm sel_ldr and nacl_helper_bootstrap with 64K page size alignment. Makes it compatible with 16k page size kernels. SCons plumbing.
|
I think it is breaking the bootstrap loader memory mapping somehow based on The test, which checks that the first 1 GiB is reserved, passes. With this branch, the patched test fails and shows there was no additional memory reserved: The patch to the test: |
580ab6a to
1ce4e9f
Compare
1ce4e9f to
3583583
Compare
|
#36 has a proper fix for the aforementioned test. I haven't investigated deeply yet why it fails with this PR, but probably we need to change the code to look up the page size at runtime for the mapping to work correctly. Is there a strong reason to increase the supported page size to 64k rather than just 16k? That may require additional changes due to the ARM kernel's rule that the first two pages can't be mapped. We would also have to increase the loader's base address to at least 128k for it to be loadable. Though we were thinking of increasing it anyway due to the Slackware |
No more reason other than “the more can do the less”. I discovered that all other binaries were aligned on 64K, and since 64k can run on 16K that can run on 4k, I just thought it would be good practice to standardize the alignment. Now if 64K is harder to achieve than 16k, we can do 16k. |
Replay of: