Thread: Userspace access to low memory.

  1. #1
    {Jaxom,Imriel,Liam}'s Dad Kennedy's Avatar
    Join Date
    Aug 2006
    Location
    Alabama
    Posts
    1,065

    Userspace access to low memory.

    Can I use request_mem_region() from userspace?

    EDIT: Do I even need to use request_mem_region(), or can/should I just read/write /dev/mem?
    Last edited by Kennedy; 12-14-2006 at 12:49 PM.

  2. #2
    .
    Join Date
    Nov 2003
    Posts
    307
    Why user mode....? A user mode driver?

  3. #3
    {Jaxom,Imriel,Liam}'s Dad Kennedy's Avatar
    Join Date
    Aug 2006
    Location
    Alabama
    Posts
    1,065
    User mode program that directly access flash memory. Drivers don't work becuase of a special thing Mfg. did. Have to map it to memory a page at a time.

  4. #4
    .
    Join Date
    Nov 2003
    Posts
    307
    request_mem_region to get protected memory will not work from user mode. Besides it returns a Resource * struct.....

    Have you tried /dev/mem? you can read the memory if you know the mapping.

  5. #5
    {Jaxom,Imriel,Liam}'s Dad Kennedy's Avatar
    Join Date
    Aug 2006
    Location
    Alabama
    Posts
    1,065
    I need to write to a memory address.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. To find the memory leaks without using any tools
    By asadullah in forum C Programming
    Replies: 2
    Last Post: 05-12-2008, 07:54 AM
  2. Direct memory access?
    By RobotGymnast in forum C++ Programming
    Replies: 37
    Last Post: 01-09-2008, 12:25 PM
  3. Low Level Drive Access?
    By coldfusion244 in forum C++ Programming
    Replies: 1
    Last Post: 03-09-2005, 08:19 AM
  4. Memory access I can't get
    By caroundw5h in forum C Programming
    Replies: 25
    Last Post: 03-04-2005, 05:42 PM
  5. pointers
    By InvariantLoop in forum C Programming
    Replies: 13
    Last Post: 02-04-2005, 09:32 AM