mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-05 17:16:50 +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>
22 lines
684 B
C++
22 lines
684 B
C++
/*
|
|
* Copyright 2015 Rockchip Electronics Co. LTD
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
#ifdef RKPLATFORM
|
|
#include <dlfcn.h>
|
|
#endif
|
|
|
|
#include "mpp_runtime.h"
|