From owner-freebsd-hackers@FreeBSD.ORG Sun Nov 16 10:24:50 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1950A16A4CF; Sun, 16 Nov 2003 10:24:50 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id BB2CD43FAF; Sun, 16 Nov 2003 10:24:48 -0800 (PST) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.10/8.12.10) with ESMTP id hAGIOjfO028872; Sun, 16 Nov 2003 19:24:45 +0100 (CET) (envelope-from phk@phk.freebsd.dk) To: Adrian Steinmann From: "Poul-Henning Kamp" In-Reply-To: Your message of "Sun, 16 Nov 2003 13:33:53 +0100." <200311161233.NAA27227@marabu.marabu.ch> Date: Sun, 16 Nov 2003 19:24:45 +0100 Message-ID: <28871.1069007085@critter.freebsd.dk> cc: hackers@freebsd.org cc: msmith@freebsd.org Subject: Re: BTX loader reboot on Soekris comBIOS1.22 fails (patches for btx.s and loader/main.c enclosed) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Nov 2003 18:24:50 -0000 In message <200311161233.NAA27227@marabu.marabu.ch>, Adrian Steinmann writes: >Soren > >We seem to have localized the loader reboot hang back to the first >far jump happening in btx.s: > > observed: > > warm boot (writes 0x1234 to 0x472) and then jumps to the BIOS reboot > > handler: > > - ljmp $0xffff,$0x0 # reboot the machine > > > > however in various literature it is mentioned that $0xf000,$0xfff0 > > is bound to work better on most platforms, so I tried > > + ljmp $0xf000,$0xfff0 # reboot the machine > > > > which indeed works! (OpenBSD, for example, uses ljmp $0xf000,$0xfff0). committed to FreeBSD -current. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.