From owner-freebsd-alpha@FreeBSD.ORG Sun Aug 10 00:36:03 2003 Return-Path: Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 009FB37B401; Sun, 10 Aug 2003 00:36:03 -0700 (PDT) Received: from dragon.nuxi.com (trang.nuxi.com [66.93.134.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0EADF43F75; Sun, 10 Aug 2003 00:36:02 -0700 (PDT) (envelope-from obrien@NUXI.com) Received: from dragon.nuxi.com (obrien@localhost [127.0.0.1]) by dragon.nuxi.com (8.12.9/8.12.9) with ESMTP id h7A7a1QX061798; Sun, 10 Aug 2003 00:36:01 -0700 (PDT) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.12.9/8.12.9/Submit) id h7A7a1Va061797; Sun, 10 Aug 2003 00:36:01 -0700 (PDT) Date: Sun, 10 Aug 2003 00:36:00 -0700 From: "David O'Brien" To: John Baldwin Message-ID: <20030810073600.GA61665@dragon.nuxi.com> Mail-Followup-To: David O'Brien , John Baldwin , alpha@FreeBSD.org, markm@freebsd.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 5.1-CURRENT Organization: The NUXI BSD Group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 cc: markm@FreeBSD.org cc: alpha@FreeBSD.org Subject: Re: [PATCH] Switch Alpha to new cpu_switch/throw conventions X-BeenThere: freebsd-alpha@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: obrien@FreeBSD.org List-Id: Porting FreeBSD to the Alpha List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Aug 2003 07:36:03 -0000 On Fri, Aug 08, 2003 at 05:14:59PM -0400, John Baldwin wrote: > I have a completely untested (but should work :-P) patch to convert > Alpha over to the new cpu_throw/switch conventions of passing the > threads in as arguments to the function. The patch is at > http://www.FreeBSD.org/~jhb/patches/alpha_switch.patch I would > appreciate it if someone could test it. Success would be making > it to multiuser mode. Failure would probably be panic'ing very early > after starting init since failure means context switches are broken. The patch works for me. When I 1st booted with this patch (and a GENERIC kernel), I had some modules preloaded for me in /boot/loader.conf for use with my normal kernel. Booting in that situation gave me: I wish someone would fix random.ko... Copyright (c) 1992-2003 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 5.1-CURRENT #0: Sat Aug 9 18:51:57 PDT 2003 rootk@phuong.nuxi.com:/files/CURRENT/usr/src/sys/alpha/compile/GENERIC Preloaded elf kernel "/boot/kernel/kernel.ko" at 0xfffffc000096e000. Preloaded elf module "/boot/kernel/if_tun.ko" at 0xfffffc000096e0d0. Preloaded elf module "/boot/kernel/if_dc.ko" at 0xfffffc000096e1a0. Preloaded elf module "/boot/kernel/random.ko" at 0xfffffc000096e270. can't re-use a leaf (if_tun_debug)! module_register: module random already exists! Module random failed to register: 17 module_register: module if_tun already exists! Module if_tun failed to register: 17 module_register: module cardbus/dc already exists! Module cardbus/dc failed to register: 17 module_register: module pci/dc already exists! Module pci/dc failed to register: 17 module_register: module dc/miibus already exists! Module dc/miibus failed to register: 17 ST6600 COMPAQ Professional Workstation XP1000, 666MHz 8192 byte page size, 1 processor. CPU: EV67 (21264A) major=11 minor=9 extensions=0x307 OSF PAL rev: 0x1001400020147 real memory = 669253632 (638 MB) avail memory = 641564672 (611 MB) panic: mutex "random reseed" 0xfffffc0000969648 already initialized cpuid = 0; panic Stopped at Debugger+0x38: zapnot v0,#0xf,v0 db> tr Debugger() at Debugger+0x38 panic() at panic+0x218 mtx_init() at mtx_init+0x80 random_init() at random_init+0xac random_modevent() at random_modevent+0x48 module_register_init() at module_register_init+0xa0 mi_startup() at mi_startup+0x144 locorestart() at locorestart+0x64 --- root of call graph --- db>