I am working on a Linux module for IA64. My current problem is that the driver uses the PAGE_SIZE and PAGE_SHIFT macros for dma page allocation. The problem I am having is tha
This is what I finally did:
PAGE_SIZE (PAGE_SIZE = 1 << PAGE_SHIFT)
PAGE_SHIFT
using getconf
API from libc. This wrapper gets the current system page shift and pass it as a module parameter. Right now the module is being loaded on different architectures with different PAGE_SIZE without any problems.