Re: how can I allocate memory in address 0x4800 0000 (virtual)
- From: "luopub@xxxxxxx" <luopub@xxxxxxx>
- Date: 27 Dec 2006 17:25:34 -0800
It's strange: when I allocate a memory of size 0x3456790(PAGE_NOACCESS)
at this address, it's successful; but when I allocate the same size of
memory at 0x2000 0000, it fails.
Why?
K. S. Huang wrote:
Do you mean you want to allocate some memory in Shared Memory Range?
If you call VirtualAlloc with dwSize >= 2 MB, flAllocationType set to
MEM_RESERVE, and flProtect set to PAGE_NOACCESS, it automatically reserves
memory at the shared memory region. This preserves per-process virtual
memory.
<yuanfei.work@xxxxxxxxx>
???????:1167127457.777869.137920@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
It looks malloc did not allocate memory in that adressrange.
thanks
.
- References:
- how can I allocate memory in address 0x4800 0000 (virtual)
- From: yuanfei.work@xxxxxxxxx
- Re: how can I allocate memory in address 0x4800 0000 (virtual)
- From: K. S. Huang
- how can I allocate memory in address 0x4800 0000 (virtual)
- Prev by Date: Re: Samsung S3C2440 BSP for CE6
- Next by Date: Re: Problem about build Eboot in command line
- Previous by thread: Re: how can I allocate memory in address 0x4800 0000 (virtual)
- Next by thread: Serial driver
- Index(es):
Relevant Pages
|
|