Date: Fri, 27 Mar 2009 03:03:14 -0700 (PDT) From: Won De Erick <won.derick@yahoo.com> To: freebsd-hackers@freebsd.org Subject: Switching to SMM with FreeBSD 6.2 onwards Message-ID: <17314.10813.qm@web45811.mail.sp1.yahoo.com>
next in thread | raw e-mail | index | archive | help
Hi All,
I'm not quite familiar with FreeBSD, but I want to do the following in 6.2/7.1.
/* Raise IOPL to 3 to open all I/O ports */
/* something like 'i386_iopl(3)' */
...
/* 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 userland.
Thanks in advance,
Won
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?17314.10813.qm>
