Switching to SMM with FreeBSD 6.2 onwards

Ivan Voras ivoras at freebsd.org
Fri Mar 27 03:36:20 PDT 2009


Takanori Watanabe wrote:
> In message <17314.10813.qm at web45811.mail.sp1.yahoo.com>, Won De Erick wrote:
>> 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)' */
>>  ...
> 
> see  i386_get_ioperm(2) or io(4).
> 
>>  /* 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.
> 
> 
> 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

:)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20090327/1c8939d5/signature.pgp


More information about the freebsd-hackers mailing list