From owner-cvs-all@FreeBSD.ORG Wed Jun 2 10:24:38 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5072816A4CE for ; Wed, 2 Jun 2004 10:24:38 -0700 (PDT) Received: from root.org (root.org [67.118.192.226]) by mx1.FreeBSD.org (Postfix) with SMTP id F346343D49 for ; Wed, 2 Jun 2004 10:24:37 -0700 (PDT) (envelope-from nate@root.org) Received: (qmail 35897 invoked by uid 1000); 2 Jun 2004 17:24:38 -0000 Date: Wed, 2 Jun 2004 10:24:38 -0700 (PDT) From: Nate Lawson To: John Baldwin In-Reply-To: <200406021255.41118.jhb@FreeBSD.org> Message-ID: <20040602102252.U35868@root.org> References: <20040602093847.D53A516A520@hub.freebsd.org> <20040602093149.D35427@root.org> <200406021255.41118.jhb@FreeBSD.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: Poul-Henning Kamp cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/boot/i386/boot2 boot1.S X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jun 2004 17:24:38 -0000 On Wed, 2 Jun 2004, John Baldwin wrote: > On Wednesday 02 June 2004 12:36 pm, Nate Lawson wrote: > > On Wed, 2 Jun 2004, Poul-Henning Kamp wrote: > > > /* > > > * Enable A20 so we can access memory above 1 meg. > > > + * Use the zero-valued %cx as a timeout for embedded hardware which do > > > not + * have a keyboard controller. > > > */ > > > seta20: cli # Disable interrupts > > > -seta20.1: inb $0x64,%al # Get status > > > > Should be a "movw TIMEOUT, %cx" here. (Or whatever the timeout constant > > is.) > > xor %cx,%cx is smaller Ah, I thought a timeout less than 65535 was desirable. > > > +seta20.1: dec %cx # Timeout? > > > + jz seta20.3 # Yes > > > + inb $0x64,%al # Get status > > > testb $0x2,%al # Busy? > > > jnz seta20.1 # Yes > > > movb $0xd1,%al # Command: Write