summaryrefslogtreecommitdiffstats
path: root/pvr-source/services4/srvkm/common/devicemem.c
diff options
context:
space:
mode:
authorHemant Hariyani <hemanthariyani@ti.com>2013-07-03 15:14:18 -0700
committerAndrew Jiang <sam.andrew.jiang@gmail.com>2013-07-04 07:33:40 -0400
commit363c0c259416c7e9d93ddf6ffcb655153bff9158 (patch)
treebf7fda0dfb7a4cbc33656c8b2b37000c13ad1cd0 /pvr-source/services4/srvkm/common/devicemem.c
parent08130d7fa7748feefb437ffb8f626dab7d75679e (diff)
downloaddevice_samsung_omap4-common-363c0c259416c7e9d93ddf6ffcb655153bff9158.zip
device_samsung_omap4-common-363c0c259416c7e9d93ddf6ffcb655153bff9158.tar.gz
device_samsung_omap4-common-363c0c259416c7e9d93ddf6ffcb655153bff9158.tar.bz2
SGX-BIN: DDK binaries and KM source 1.9@2291151
Includes new pixel formats. Change-Id: I4a56e6bff9c477610f2ce30706831f66dcc9c651
Diffstat (limited to 'pvr-source/services4/srvkm/common/devicemem.c')
-rw-r--r--pvr-source/services4/srvkm/common/devicemem.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/pvr-source/services4/srvkm/common/devicemem.c b/pvr-source/services4/srvkm/common/devicemem.c
index 872c0ba..5496753 100644
--- a/pvr-source/services4/srvkm/common/devicemem.c
+++ b/pvr-source/services4/srvkm/common/devicemem.c
@@ -1759,6 +1759,18 @@ PVRSRV_ERROR IMG_CALLCONV PVRSRVWrapExtMemoryKM(IMG_HANDLE hDevCookie,
*/
bPhysContig = IMG_FALSE;
}
+ else
+ {
+ if (psExtSysPAddr)
+ {
+ PVR_DPF((PVR_DBG_ERROR, "PVRSRVWrapExtMemoryKM: invalid parameter, physical address passing is not supported"));
+ }
+ else
+ {
+ PVR_DPF((PVR_DBG_ERROR, "PVRSRVWrapExtMemoryKM: invalid parameter, no address specificed"));
+ }
+ return PVRSRV_ERROR_INVALID_PARAMS;
+ }
/* Choose the heap to map to */
psDevMemoryInfo = &((BM_CONTEXT*)hDevMemContext)->psDeviceNode->sDevMemoryInfo;