Skip to content

Conversation

@weebl2000
Copy link

Essential changes:

  • Fix PAGE_SIZE/PAGE_MASK undefined errors in NDK 28+
  • Replace compile-time constants with runtime functions for flexible page size support
  • Support both 4KB and 16KB page sizes as required by Android 15+

Minimal build changes:

  • Remove deprecated armeabi ABI (NDK 28 no longer supports it)
  • Keep android-14 platform (NDK automatically upgrades to android-21)

Technical implementation:

  • Add get_page_size() and get_page_mask() runtime functions in xh_util.c
  • Use sysconf(_SC_PAGESIZE) for runtime page size detection

Tested with NDK 28.2.13676358 - all architectures build successfully.

Essential changes:
- Fix PAGE_SIZE/PAGE_MASK undefined errors in NDK 28+
- Replace compile-time constants with runtime functions for flexible page size support
- Support both 4KB and 16KB page sizes as required by Android 15+

Minimal build changes:
- Remove deprecated armeabi ABI (NDK 28 no longer supports it)
- Keep android-14 platform (NDK automatically upgrades to android-21)

Technical implementation:
- Add get_page_size() and get_page_mask() runtime functions in xh_util.c
- Use sysconf(_SC_PAGESIZE) for runtime page size detection

Tested with NDK 28.2.13676358 - all architectures build successfully.

🤖 Generated with Claude Code

Co-Authored-By: Claude <[email protected]>
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.

1 participant