From owner-p4-projects@FreeBSD.ORG Fri May 9 21:54:06 2003 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 4BE5637B404; Fri, 9 May 2003 21:54:06 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DB04A37B401 for ; Fri, 9 May 2003 21:54:05 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8199143F75 for ; Fri, 9 May 2003 21:54:05 -0700 (PDT) (envelope-from jmallett@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h4A4s50U029891 for ; Fri, 9 May 2003 21:54:05 -0700 (PDT) (envelope-from jmallett@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h4A4s5eq029888 for perforce@freebsd.org; Fri, 9 May 2003 21:54:05 -0700 (PDT) Date: Fri, 9 May 2003 21:54:05 -0700 (PDT) Message-Id: <200305100454.h4A4s5eq029888@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to jmallett@freebsd.org using -f From: Juli Mallett To: Perforce Change Reviews Subject: PERFORCE change 30905 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 May 2003 04:54:07 -0000 http://perforce.freebsd.org/chv.cgi?CH=30905 Change 30905 by jmallett@jmallett_dalek on 2003/05/09 21:54:02 Use an ungodly huge stack, for now, it's doing well here and since that my random problems have gone away, but that may be the result of other things related to mutex_init. Prime the GP, compiler changes going in soon need this to produce a booting kernel. Affected files ... .. //depot/projects/mips/sys/mips/mips/locore.S#6 edit Differences ... ==== //depot/projects/mips/sys/mips/mips/locore.S#6 (text+ko) ==== @@ -33,12 +33,13 @@ #include "assym.s" .data +GLOBAL(stackspace) + .space 131072 +GLOBAL(topstack) /* * Dummy interrupt table to keep sysctl happy until * it's worked out what to do with naming */ -GLOBAL(stackspace) - .space 16384 GLOBAL(intrnames) .asciz "dummy" GLOBAL(eintrnames) @@ -50,7 +51,8 @@ .set noreorder .text -ENTRY(btext) + .globl btext +btext: ENTRY(start) # t0: Bits to preserve if set: # Soft reset @@ -81,14 +83,23 @@ sw t0, cpu_id sw t1, fpu_id + # Set up the GP. + la gp, _gp + # Set up our temporary stack. - la sp, stackspace - addu sp, 16384 + la sp, topstack # Call the platform-specific startup code. jal platform_start nop +#if 0 + # Put thread0 onto our temporary stack. + ld t0, pcpup + ld t0, PC_CURTHREAD(t0) + sd sp, TD_KSTACK(t0) +#endif + # Start MI things rolling. jal mi_startup nop