diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2002-01-02 23:05:54 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2002-01-02 23:05:54 +0000 |
commit | f315b157ab6cfc010521734866edf47006e6b13e (patch) | |
tree | 247219db1e7513b97bbc36dd744463c8073cd8d7 /lib/libc_r/arch | |
parent | 8cbabc59e1677abdb25669f6c92664982f7fd35e (diff) |
correct fram size.
pointed out by marc@
Diffstat (limited to 'lib/libc_r/arch')
-rw-r--r-- | lib/libc_r/arch/sparc64/uthread_machdep_asm.S | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/libc_r/arch/sparc64/uthread_machdep_asm.S b/lib/libc_r/arch/sparc64/uthread_machdep_asm.S index 79436b8742f..63ba7852603 100644 --- a/lib/libc_r/arch/sparc64/uthread_machdep_asm.S +++ b/lib/libc_r/arch/sparc64/uthread_machdep_asm.S @@ -1,8 +1,9 @@ -/* $OpenBSD: uthread_machdep_asm.S,v 1.2 2002/01/02 19:11:28 art Exp $ */ +/* $OpenBSD: uthread_machdep_asm.S,v 1.3 2002/01/02 23:05:53 art Exp $ */ /* David Leonard <d@csee.uq.edu.au>. Public domain. */ #include <machine/asm.h> #include <machine/trap.h> +#include <machine/frame.h> /* * Switch stacks. @@ -15,14 +16,11 @@ #define flushw t T_FLUSHWIN #endif -#define SA(x) (((x)+15)&(~0x1f)) -#define MINFRAME ((16+1+6)*8) - /* void _thread_switch(long newstate[2], long savestate[2], int flags); */ ENTRY(_thread_machdep_switch) /* new window */ - save %sp, -SA(MINFRAME), %sp + save %sp, -CC64FSZ, %sp /* flush all windows (except current one) into memory frames */ flushw |