From e151ad07f3937f01b9308a4a6a0c88590649dba3 Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Sat, 3 Aug 2002 20:23:01 +0000 Subject: reorder stack_alloc() and add a comment --- sys/arch/hppa/hppa/locore.S | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'sys/arch/hppa') diff --git a/sys/arch/hppa/hppa/locore.S b/sys/arch/hppa/hppa/locore.S index 5569b59f8fd..6629ad2300f 100644 --- a/sys/arch/hppa/hppa/locore.S +++ b/sys/arch/hppa/hppa/locore.S @@ -1,4 +1,4 @@ -/* $OpenBSD: locore.S,v 1.77 2002/08/03 20:19:41 mickey Exp $ */ +/* $OpenBSD: locore.S,v 1.78 2002/08/03 20:23:00 mickey Exp $ */ /* * Copyright (c) 1998-2002 Michael Shalayeff @@ -167,10 +167,11 @@ ENTRY($start,0) ldo NBPG-1(arg3), arg3 dep r0, 31, PGSHIFT, arg3 -#define STACK_ALLOC(n,s) \ - ldil L%(n), t1 ! \ - stw arg3, R%(n)(t1) ! \ - ldil L%(s), t2 ! \ + /* assuming size being page-aligned */ +#define STACK_ALLOC(n,s) \ + ldil L%(n), t1 ! \ + ldil L%(s), t2 ! \ + stw arg3, R%(n)(t1) ! \ add arg3, t2, arg3 STACK_ALLOC(pdc_stack, PDC_STACKSIZE) -- cgit v1.2.3