Re: do i have to do virtualalloc, if i am accessing flash area outside of the NK?
From: Randal Leeson (randylrandyl_at_yahoo.com)
Date: 10/27/04
- Next message: Semion Beriy: "Re: USB-host power supply"
- Previous message: Randal Leeson: "Re: Unable to see target device"
- In reply to: mobilevil: "do i have to do virtualalloc, if i am accessing flash area outside of the NK?"
- Next in thread: mobilevil: "Re: do i have to do virtualalloc, if i am accessing flash area outside of the NK?"
- Reply: mobilevil: "Re: do i have to do virtualalloc, if i am accessing flash area outside of the NK?"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 27 Oct 2004 12:12:47 GMT
If the thread that will access the memory area is running in KERNEL
mode then it can access all of the memory mapped into the kernel
address space using the kernel mode addresses without using
VirtualAlloc/Copy.
If the image was built in full kernel mode then all threads will be
running in kernel mode and can use kernel mode addresses. Taking
advantage of this would only be recommened for a closed system and not
for a general purpose driver or BSP.
Randal Leeson
On Wed, 27 Oct 2004 16:52:54 +0800, "mobilevil" <mobilevil@mobile.com>
wrote:
>i am making a flash based block driver for wince 4.2
>it is working now but i wonder if the virutal alloc is really needed?
>in some cases i can write to it directly by pointer, without virual alloc.
>currently i am allocating 4M at a time, and switch to another 4M when
>needed.
>
- Next message: Semion Beriy: "Re: USB-host power supply"
- Previous message: Randal Leeson: "Re: Unable to see target device"
- In reply to: mobilevil: "do i have to do virtualalloc, if i am accessing flash area outside of the NK?"
- Next in thread: mobilevil: "Re: do i have to do virtualalloc, if i am accessing flash area outside of the NK?"
- Reply: mobilevil: "Re: do i have to do virtualalloc, if i am accessing flash area outside of the NK?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|