diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-08-03 20:23:01 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-08-03 20:23:01 +0000 |
commit | e151ad07f3937f01b9308a4a6a0c88590649dba3 (patch) | |
tree | 2358c5c14329d8f91f38877974c2bb7077c301ff /sys/arch/hppa | |
parent | 5b6ed4b991349a2b54d6369ad63b65ab7d93b3ce (diff) |
reorder stack_alloc() and add a comment
Diffstat (limited to 'sys/arch/hppa')
-rw-r--r-- | sys/arch/hppa/hppa/locore.S | 11 |
1 files changed, 6 insertions, 5 deletions
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) |