|
Re: mmap of huge space fails, even with dma-save region
|
10/19/2010 9:48 AM
post71224
|
Re: mmap of huge space fails, even with dma-save region
if using -R 352M, the space is marked as used, but i sitll cant map it.
i can open the memory with:
int fd = posix_typed_mem_open("/ram/fb", O_RDWR, POSIX_TYPED_MEM_ALLOCATE_CONTIG);
but still not map:
mBuffer = mmap(NULL, mBufferSize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
posix_typed_mem_get_info reports:
__posix_tmi_length_hi 0
posix_tmi_length 121372672
is the entry in the starup correct?
main.c:
...
init_misc();
init_pci();
add_typed_string(_CS_MACHINE, "myBoard");
as_add_containing(0, 0x15FFFFFF, AS_ATTR_RAM, "fb", "ram");
init_system_private();
print_syspage();
...
|
|
|