mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-06 09:36:49 +08:00

The "[drm]: fix runtime error for 32bit library" is hack way, it won't work at GNU Linux platform. Also you need to check _FILE_OFFSET_BITS and _LARGEFILE64_SOURCE before use the mmap64(). For the normal mmap() with glibc, we only request to check offset is aligned with page size but not the lenght. But that doesn't apply for the memory from the drm device, also the android use a different rule. I decide not to map all the buffer to cpu at beginning since most of them won't be access by the cpu. Change-Id: I74ac7b5b63d45029cae076985a3d0b4526c62bbc Signed-off-by: Randy Li <randy.li@rock-chips.com>