From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 27 10:36:19 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D18F2106564A for ; Fri, 27 Mar 2009 10:36:19 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 5AA588FC08 for ; Fri, 27 Mar 2009 10:36:19 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Ln9Q8-0000Uk-8L for freebsd-hackers@freebsd.org; Fri, 27 Mar 2009 10:36:16 +0000 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 27 Mar 2009 10:36:16 +0000 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 27 Mar 2009 10:36:16 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-hackers@freebsd.org From: Ivan Voras Date: Fri, 27 Mar 2009 11:35:12 +0100 Lines: 60 Message-ID: References: <17314.10813.qm@web45811.mail.sp1.yahoo.com> <200903271021.n2RALixB062663@sana.init-main.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig09C3938DD63C238AC27CD1AA" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Thunderbird 2.0.0.21 (X11/20090318) In-Reply-To: <200903271021.n2RALixB062663@sana.init-main.com> X-Enigmail-Version: 0.95.0 Sender: news Subject: Re: Switching to SMM with FreeBSD 6.2 onwards 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: Fri, 27 Mar 2009 10:36:20 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig09C3938DD63C238AC27CD1AA Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Takanori Watanabe wrote: > In message <17314.10813.qm@web45811.mail.sp1.yahoo.com>, Won De Erick w= rote: >> Hi All, >> >> I'm not quite familiar with FreeBSD, but I want to do the following in= 6.2/7.1 >> .=20 >> >> /* Raise IOPL to 3 to open all I/O ports */ >> /* something like 'i386_iopl(3)' */ >> ... >=20 > see i386_get_ioperm(2) or io(4). >=20 >> /* Open SMRAM access */ >> outl(unsigned int port, unsigned long int data); >> >> >> Also, I appreciate comments on the following wrapper: >> >> static inline outl(unsigned int port, unsigned long int data) >> { >> asm("outl %0, %1" : : "a" (data), "dN" (port)); >> } >> >> >> My goal is to switch the processor to SMM by triggering SMI from userl= and. >=20 >=20 > Probably this will work. > So what do you want ask about that? One thing that comes to my mind is this: http://invisiblethingslab.com/resources/misc09/smm_cache_fun.pdf :) --------------enig09C3938DD63C238AC27CD1AA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJzKvxldnAQVacBcgRAny3AKD7EwvOu82hOxxBFPVwLjbiITxFOgCdGAx1 fa8akgT3PK5VJ+VJ0VCYDfE= =io1w -----END PGP SIGNATURE----- --------------enig09C3938DD63C238AC27CD1AA--