From owner-freebsd-hackers@FreeBSD.ORG Sun Jan 23 19:56:57 2011 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CB0281065670 for ; Sun, 23 Jan 2011 19:56:57 +0000 (UTC) (envelope-from neelnatu@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 61A198FC1A for ; Sun, 23 Jan 2011 19:56:57 +0000 (UTC) Received: by wwf26 with SMTP id 26so3311203wwf.31 for ; Sun, 23 Jan 2011 11:56:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=4dkOCwwc3C3ybAd7JttE79kDMf4R+51gSrCMG9kE2ZY=; b=F6QC+XniVzKx+pq/ie2xPHz5ZcbY95mDhc8tex1UqInFnpx4OVvltcdnbegybc4aXe f79pv8LX1+a5Ubqa2kQqPwvLCTHMwmlPwc4Blxj06xsNWNNhX9+rf1DiyWBUDYtZrS3N v6QITD1ZKTqaJFcfaqS4yTAwuoN7rZ2xaO3rg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=ZAgjFk3qGuzRpz1TCeK6FdWyAUkMKfhENkDSOCQQqGQSJEYqkCtgpMSOVZrzSTwxtz YYXpT46hXdP77MG6HIq2VYEBHc7SmFEAQVIv8C3HGtaq+goHtEI065IkgDyVq1ixI/LX boBplIoA5nSV0fvNkMkhsrZdinkt4d8gvXagA= MIME-Version: 1.0 Received: by 10.216.63.132 with SMTP id a4mr2867845wed.3.1295810783005; Sun, 23 Jan 2011 11:26:23 -0800 (PST) Received: by 10.216.168.134 with HTTP; Sun, 23 Jan 2011 11:26:22 -0800 (PST) In-Reply-To: <4D3C4F94.7020307@timon.net.nz> References: <4D3C4F94.7020307@timon.net.nz> Date: Sun, 23 Jan 2011 11:26:22 -0800 Message-ID: From: Neel Natu To: Alexandr Matveev Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: hackers@freebsd.org Subject: Re: How to read non-physical memory? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Jan 2011 19:56:57 -0000 Hi Alexandr, On Sun, Jan 23, 2011 at 7:56 AM, Alexandr Matveev 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= " >