Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LgIAz-0003ge-04 for mharc-grub-devel@gnu.org; Sun, 08 Mar 2009 08:32:17 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LgIAx-0003ex-AX for grub-devel@gnu.org; Sun, 08 Mar 2009 08:32:15 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LgIAw-0003e4-GH for grub-devel@gnu.org; Sun, 08 Mar 2009 08:32:14 -0400 Received: from [199.232.76.173] (port=42328 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LgIAw-0003du-Cq for grub-devel@gnu.org; Sun, 08 Mar 2009 08:32:14 -0400 Received: from aybabtu.com ([69.60.117.155]:41576) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LgIAv-0006G8-Vg for grub-devel@gnu.org; Sun, 08 Mar 2009 08:32:14 -0400 Received: from [192.168.10.10] (helo=thorin) by aybabtu.com with esmtp (Exim 4.69) (envelope-from ) id 1LgI2y-0004Iu-6Q for grub-devel@gnu.org; Sun, 08 Mar 2009 13:24:01 +0100 Received: from rmh by thorin with local (Exim 4.69) (envelope-from ) id 1LgIAp-0007Sw-R5 for grub-devel@gnu.org; Sun, 08 Mar 2009 13:32:07 +0100 Date: Sun, 8 Mar 2009 13:32:07 +0100 From: Robert Millan To: The development of GRUB 2 Message-ID: <20090308123207.GB28676@thorin> References: <49B29605.4020802@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <49B29605.4020802@gmail.com> Organization: free as in freedom X-Message-Flag: Worried about Outlook viruses? Switch to Thunderbird! www.mozilla.com/thunderbird X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.18 (2008-05-17) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Re: Interrupt testing X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Mar 2009 12:32:15 -0000 On Sat, Mar 07, 2009 at 04:43:01PM +0100, phcoder wrote: > Hello. Here is a trivial patch for testing which interrupts are and > which aren't handled by BIOS. Can be used as a simple but not reliable > test for boot viruses Would it be feasible to make this more generic? BIOS works with 16-bit 8086 mode interrupt handlers, others might have setup 32-bit interrupt handlers. What would you think of: - Detect both 16-bit / 8086 interrupts and 32-bit ones. - Make it agnostic about what firmware instead of assuming BIOS. - Building it in i386.rmk instead. ? -- Robert Millan The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and how) you may access your data; but nobody's threatening your freedom: we still allow you to remove your data and not access it at all."