Date: Fri, 27 Mar 2009 11:35:12 +0100 From: Ivan Voras <ivoras@freebsd.org> To: freebsd-hackers@freebsd.org Subject: Re: Switching to SMM with FreeBSD 6.2 onwards Message-ID: <gqia6l$cpu$1@ger.gmane.org> In-Reply-To: <200903271021.n2RALixB062663@sana.init-main.com> References: <17314.10813.qm@web45811.mail.sp1.yahoo.com> <200903271021.n2RALixB062663@sana.init-main.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?gqia6l$cpu$1>
