MB
2008-05-22 17:50:37 UTC
Hi ,
After boot up vxworks 6.2 with MMU enabled, I do a vmMap() with
virtual address 0xc0000000 and physical address 0x20000000. After
mapping, I do memPartCreate at the same virtual address mentioned
earlier. using this newly partitioned memory I try to malloc with
memPartAlloc(). I am getting valid memory, I can verify the virtual
address of this is from the virtual address which I just mapped.
When I use vmTranslate() with the above malloced address I dont get
valid physical address which I mapped, whatever physical address
returned from vmTranslate() if I pass it to vmPhysTranslate(), I wont
get the actual virtual address back at all.
Can anybody tell is there anything I am doing wrong?
My requirement is, after mapping some physical address to some virtual
address and then set up memory partition there and use malloc from
that region and convert it to physical address and program some
device.
thanks,
MB.
After boot up vxworks 6.2 with MMU enabled, I do a vmMap() with
virtual address 0xc0000000 and physical address 0x20000000. After
mapping, I do memPartCreate at the same virtual address mentioned
earlier. using this newly partitioned memory I try to malloc with
memPartAlloc(). I am getting valid memory, I can verify the virtual
address of this is from the virtual address which I just mapped.
When I use vmTranslate() with the above malloced address I dont get
valid physical address which I mapped, whatever physical address
returned from vmTranslate() if I pass it to vmPhysTranslate(), I wont
get the actual virtual address back at all.
Can anybody tell is there anything I am doing wrong?
My requirement is, after mapping some physical address to some virtual
address and then set up memory partition there and use malloc from
that region and convert it to physical address and program some
device.
thanks,
MB.