Rev 1533 | Rev 1552 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1533 | Rev 1547 | ||
---|---|---|---|
Line 386... | Line 386... | ||
386 | return -1; |
386 | return -1; |
387 | } |
387 | } |
388 | } |
388 | } |
389 | 389 | ||
390 | if ((interbuffer = mmap(NULL, sizeof(keyfield_t) * fb_info.cols * fb_info.rows , PROTO_READ|PROTO_WRITE, MAP_ANONYMOUS|MAP_PRIVATE, 0 ,0 )) != NULL) { |
390 | if ((interbuffer = mmap(NULL, sizeof(keyfield_t) * fb_info.cols * fb_info.rows , PROTO_READ|PROTO_WRITE, MAP_ANONYMOUS|MAP_PRIVATE, 0 ,0 )) != NULL) { |
391 | if (ipc_call_sync_3(fb_info.phone, IPC_M_AS_AREA_SEND, (ipcarg_t)interbuffer, 0, AS_AREA_READ | AS_AREA_CACHEABLE, NULL, NULL, NULL) != 0) { |
391 | if (ipc_call_sync_3(fb_info.phone, IPC_M_AS_AREA_SEND, (ipcarg_t)interbuffer, 0, AS_AREA_READ, NULL, NULL, NULL) != 0) { |
392 | munmap(interbuffer, sizeof(keyfield_t) * fb_info.cols * fb_info.rows); |
392 | munmap(interbuffer, sizeof(keyfield_t) * fb_info.cols * fb_info.rows); |
393 | interbuffer = NULL; |
393 | interbuffer = NULL; |
394 | } |
394 | } |
395 | } |
395 | } |
396 | 396 |