diff options
author | 2002-01-02 23:05:53 +0000 | |
---|---|---|
committer | 2002-01-02 23:05:53 +0000 | |
commit | b4221514576581a2af68383ee1b83806bcb53a15 (patch) | |
tree | 08dafb4ddff4991d7b3de94448f4b0ba45b0be77 | |
parent | label abort() from inside library as ILLEGAL (diff) | |
download | wireguard-openbsd-b4221514576581a2af68383ee1b83806bcb53a15.tar.xz wireguard-openbsd-b4221514576581a2af68383ee1b83806bcb53a15.zip |
correct fram size.
pointed out by marc@
-rw-r--r-- | lib/libc_r/arch/sparc64/uthread_machdep_asm.S | 8 | ||||
-rw-r--r-- | lib/libpthread/arch/sparc64/uthread_machdep_asm.S | 8 |
2 files changed, 6 insertions, 10 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 diff --git a/lib/libpthread/arch/sparc64/uthread_machdep_asm.S b/lib/libpthread/arch/sparc64/uthread_machdep_asm.S index 79436b8742f..63ba7852603 100644 --- a/lib/libpthread/arch/sparc64/uthread_machdep_asm.S +++ b/lib/libpthread/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 |