Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933575AbXEERAp (ORCPT ); Sat, 5 May 2007 13:00:45 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S933606AbXEERAp (ORCPT ); Sat, 5 May 2007 13:00:45 -0400 Received: from m-relay.rz.uni-saarland.de ([134.96.7.3]:11824 "EHLO m-relay.rz.uni-saarland.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933575AbXEERAn (ORCPT ); Sat, 5 May 2007 13:00:43 -0400 X-Greylist: delayed 3448 seconds by postgrey-1.27 at vger.kernel.org; Sat, 05 May 2007 13:00:43 EDT Date: Sat, 5 May 2007 12:44:52 +0200 From: Alexander van Heukelum To: Andi Kleen , Andrew Morton , "H. Peter Anvin" , lkml Subject: [PATCH] Make bootsector stub 16-bit-only (i386) Message-ID: <20070505104452.GA30944@mailshack.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.9i X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.5.1 (m-relay.rz.uni-saarland.de [134.96.7.3]); Sat, 05 May 2007 12:46:50 +0200 (CEST) X-AntiVirus: checked by AntiVir Milter (version: 1.1.3-1; AVE: 7.3.1.53; VDF: 6.38.1.19; host: AntiVir1) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1003 Lines: 35 Hi! The x86 bzImage contains a stub to inform people that it is not possible any more to run a Linux kernel by catting it to a floppy and then booting from it. This was meant to be all 16-bit code. The first instruction, however, ended up as being coded as a 16:32-bit far jump. I assume the intention was a 16:16-bit far jump. This patch changes only i386. Greetings, Alexander Signed-off-by: Alexander van Heukelum --- diff --git a/arch/i386/boot/bootsect.S b/arch/i386/boot/bootsect.S index 011b7a4..ae9df0d 100644 --- a/arch/i386/boot/bootsect.S +++ b/arch/i386/boot/bootsect.S @@ -44,7 +44,7 @@ #endif _start: # Normalize the start address - jmpl $BOOTSEG, $start2 + jmpw $BOOTSEG, $start2 start2: movw %cs, %ax - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/