I'm trying to use the function "xscale_sram_malloc_user" on PXA270 on Linux (patched by intel mainstone, http://ftp.linux.org.uk/pub/linux/people/arm/people/xscale/mainstone/12-29-2004/). I want to allocate a block from internal SRAM of pxa270, and use in user space. So I am going to use the API "void *xscale_sram_malloc_user(size_t size, u32 virtual_sram_base, u32 pid)" But I cannot know that how can i get virtual_sram_base
"virtual_sram_base - the virtual address of sram_base as assigned by a call to mmap."
WhatI should do?
Thanks and regards,