Re: data access fron an interrupt handler

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

On 16.07.2011 12:27, Pierre-Marie Boyer wrote:

> Because in this case the task context is not the same, and I think that no
> changing context is performed by the OS before running the interrupt.
> I think this can be a problem when we are in virtual memory system (uC with
> MMU ).
> Could you give me some information? 
> (I know this is not a specific question of eCos, but I have not found were
> to ask this question. sory, and thank you in advance)

eCos does not use MMU (or at least not in this way), so this
is really wrong forum to ask.

Directly accessing user data from kernel space is no trivial
task. The address translation is one thing, but on a system
with real virtual memory the data are maybe not her
at all - they can be swapped out.

The other way round is much easier - the kernel just
allocates you a virtual memory pointing into kernel space
(on unix-like systems see mmap()).

What exactly are you trying to accomplish? I'd recommend
to get a good book describing the linux kernel and study
kernel space - user space interfacing there (copy_to/from_user,
ideas behind the mmap() call etc).


Before posting, please read the FAQ:
and search the list archive:

[Linux Embedded]     [U-Boot V2]     [Linux Kernel]     [Linux MIPS]     [Linux ARM]     [Linux for the Blind]     [Linux Resources]     [Photo]     [Yosemite]     [ISDN Cause Codes]     [ECOS Home]

Add to Google Powered by Linux