physical address to virtual address conversion
From: Rajesh Ghanekar (ghanekar_rajesh_at_hotmail.com)
Date: 03/30/05
- Previous message: David Leimbach: "Re: organization"
- Next in thread: Scott Long: "Re: physical address to virtual address conversion"
- Reply: Scott Long: "Re: physical address to virtual address conversion"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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"
- Previous message: David Leimbach: "Re: organization"
- Next in thread: Scott Long: "Re: physical address to virtual address conversion"
- Reply: Scott Long: "Re: physical address to virtual address conversion"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|