Date: Tue, 15 Jan 2008 02:00:00 GMT From: Warner Losh <imp@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 133297 for review Message-ID: <200801150200.m0F200FQ008704@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=133297 Change 133297 by imp@imp_lighthouse on 2008/01/15 01:59:51 Copy the topstack construct from mips2. Change PAGE_SIZE to NBPG to match what's used here (the param.h stuff is too tricky to try to sort out atm). Use topstack in preference to putting the stack just before 'start' since that appears to be used for other according to nm. Affected files ... .. //depot/projects/mips2-jnpr/src/sys/mips/mips/locore.S#9 edit Differences ... ==== //depot/projects/mips2-jnpr/src/sys/mips/mips/locore.S#9 (text+ko) ==== @@ -83,14 +83,16 @@ GLOBAL(cfe_vector) .space 4 #endif - +GLOBAL(stackspace) + .space NBPG /* Smaller than it should be since it's temp. */ + .align 8 +GLOBAL(topstack) + .set noreorder + .text - .set noreorder # Noreorder is default style! - .globl _C_LABEL(_start) - .globl _C_LABEL(btext) -_C_LABEL(_start): -_C_LABEL(btext): +GLOBAL(btext) +ASM_ENTRY(_start) VECTOR(_locore, unknown) /* UNSAFE TO USE a0..a3, since some bootloaders pass that to us */ @@ -142,7 +144,7 @@ /* * Initialize stack and call machine startup. */ - la sp, _start - START_FRAME + la sp, topstack - START_FRAME la gp, _C_LABEL(_gp) sw zero, START_FRAME - 4(sp) # Zero out old ra for debugger
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801150200.m0F200FQ008704>