Date: Fri, 27 Mar 2009 14:23:46 +0200 From: Andriy Gapon <avg@icyb.net.ua> To: Ivan Voras <ivoras@freebsd.org> Cc: freebsd-hackers@freebsd.org Subject: Re: Switching to SMM with FreeBSD 6.2 onwards Message-ID: <49CCC552.5070001@icyb.net.ua> In-Reply-To: <gqia6l$cpu$1@ger.gmane.org> References: <17314.10813.qm@web45811.mail.sp1.yahoo.com> <200903271021.n2RALixB062663@sana.init-main.com> <gqia6l$cpu$1@ger.gmane.org>
next in thread | previous in thread | raw e-mail | index | archive | help
on 27/03/2009 12:35 Ivan Voras said the following: > Takanori Watanabe wrote: >> In message <17314.10813.qm@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)); >>> } >>> Take a look at machine/cpufunc.h >>> 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 > > :) Yeah, and IDA Pro rocks too :-) -- Andriy Gapon
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49CCC552.5070001>