From: Jeremy Fitzhardinge Subject: Re: [PATCH 04/10] i386: clean up bzImage generation Date: Fri, 15 Jun 2007 09:34:10 -0700 Message-ID: <4672BF82.9050101@goop.org> References: <20070615004818.424726597@goop.org> <20070615005012.962196819@goop.org> <4672BC3E.6080308@zytor.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4672BC3E.6080308@zytor.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "H. Peter Anvin" Cc: Xen-Devel , Rusty Russell , lkml , v12n , Vivek Goyal , "Eric W. Biederman" , Andrew Morton , Andi Kleen List-Id: xen-devel@lists.xenproject.org H. Peter Anvin wrote: > Jeremy Fitzhardinge wrote: > >> -setup_move_size: .word 0x8000 # size to move, when setup is not >> +setup_move_size: .word _setup_size # size to move, when setup is not >> # loaded at 0x90000. We will move setup >> # to 0x90000 then just before jumping >> # into the kernel. However, only the >> > > This is WRONG and will break 2.00 protocol bootloaders, if any still > exist, and quite possibly some 2.01 protocol bootloaders. There are > definitiely bootloaders in the field that rely on this implicit value. > Ah, I see. I didn't see any documentation saying that this must be 0x8000. Or does _setup_size just have to be <= 0x8000? >> @@ -246,7 +246,6 @@ setup2: >> jnz 1f >> movw $0xfffc, %sp # Make sure we're not zero >> 1: movzwl %sp, %esp # Clear upper half of %esp >> - sti >> > > Motivation, please? > We talked about this, and you said it was a mistake. It needn't be in this patch; it could be separate, or just dropped as far as I'm concerned. J