Date: Sun, 23 Jan 2011 11:26:22 -0800 From: Neel Natu <neelnatu@gmail.com> To: Alexandr Matveev <timon@timon.net.nz> Cc: hackers@freebsd.org Subject: Re: How to read non-physical memory? Message-ID: <AANLkTik%2Bzwsh8CCcWkoRHcUZ=BN85BffxcotCbxMBDwH@mail.gmail.com> In-Reply-To: <4D3C4F94.7020307@timon.net.nz> References: <4D3C4F94.7020307@timon.net.nz>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi Alexandr, On Sun, Jan 23, 2011 at 7:56 AM, Alexandr Matveev <timon@timon.net.nz> wrot= e: > Hello. > > =A0When FreeBSD boots with 'boot -v' it show SMAP: > SMAP type=3D01 base=3D0000000000000000 len=3D000000000009d800 > SMAP type=3D02 base=3D000000000009d800 len=3D0000000000002800 > SMAP type=3D02 base=3D00000000000e0000 len=3D0000000000020000 > SMAP type=3D01 base=3D0000000000100000 len=3D00000000bfdb0000 > <...> > SMAP type=3D02 base=3D00000000fed1c000 len=3D0000000000004000 > <...> > > =A0Memory range 0xfed1c000 - 0xfed2000 belongs to ICH8 mapped to memory > configuration registers. > =A0If I correctly understand mem man page, /dev/mem allow to read only re= al > physical memory. How can I read data from this range? I am not sure what the man page says but you can certainly use /dev/mem to access mmio space. I have used 'dd' with 'if=3D/dev/mem' to dump out mmio registers on amd64. YMMV with other architectures. best Neel > > -- > Alexandr Matveev > > _______________________________________________ > 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= " >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTik%2Bzwsh8CCcWkoRHcUZ=BN85BffxcotCbxMBDwH>