physical address to virtual address conversion

From: Rajesh Ghanekar (ghanekar_rajesh_at_hotmail.com)
Date: 03/30/05

  • Next message: Peter Jeremy: "Re: organization"
    To: freebsd-hackers@freebsd.org
    Date: Thu, 31 Mar 2005 00:40:15 +0530
    
    

    Hi,

       I am trying to convert a physical memory location (address 0x000F0000)
    to virtual memory address in kernel module with pmap_map() / pmap_enter().
    Whenever i call these two functions, system hangs. Is this a proper
    way for conversion?

      The same physical address can be accessed from the userspace by opening
    /dev/mem. The code which does the memory mapping to /dev/mem at kernel
    level is in ./sys/i386/i386/mem.c as mmrw() which also uses pmap_enter().

    kernel = FreeBSD 4.10

    - Rajesh

    _________________________________________________________________
    NRIs, operate Rupee Checking Account.
    http://creative.mediaturf.net/creatives/citibankrca/rca_msntagofline.htm
    Without minimum balance for 20 yrs!

    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"


  • Next message: Peter Jeremy: "Re: organization"

    Relevant Pages

    • Re: Large array in KVM
      ... I'm working on a kernel module that needs to maintain a large ... a process that maps a large file into memory, ... which means a dynamically-allocated syscall via ...
      (freebsd-hackers)
    • Re: Testing RAM from userspace / question about memmap= arguments
      ... instead of using mlockfrom userspace of simply writing a kernel ... module that does this for every page of available memory. ... sure even a kernel module could reliably test the memory in which it is ...
      (Linux-Kernel)
    • Re: few queries about user/kernel vitual addresses
      ... In my kernel module i recieve a virtual address, how can i find is this ... for kernel virtual address(high memory). ...
      (comp.os.linux.development.system)
    • few queries about user/kernel vitual addresses
      ... In my kernel module i recieve a virtual address, how can i find is this ... for kernel virtual address(high memory). ...
      (comp.os.linux.development.system)
    • [UNIX] Linux Kernel do_brk() Vulnerablility (Explained)
      ... Get your security news from a reliable source. ... A critical security bug has been found in the Linux kernel 2.4.22 (and ... earlier) memory management subsystem. ... for the code working at the lowest privilege level. ...
      (Securiteam)