diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-12-04 00:20:32 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-12-04 00:20:32 +0000 |
commit | 9720a68cfa91e81448943519aa26e26e4af5979e (patch) | |
tree | c46200fa30143c83365c01e50c624c69261f4e01 | |
parent | c195630e0e9fe5daa354c0c7569e93efb008ee16 (diff) |
correct frame handling
with and ok guenther
-rw-r--r-- | lib/csu/mips64/md_init.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/lib/csu/mips64/md_init.h b/lib/csu/mips64/md_init.h index 51a6d0b33ed..464c4bafef7 100644 --- a/lib/csu/mips64/md_init.h +++ b/lib/csu/mips64/md_init.h @@ -1,4 +1,4 @@ -/* $OpenBSD: md_init.h,v 1.3 2013/12/03 06:21:41 guenther Exp $ */ +/* $OpenBSD: md_init.h,v 1.4 2013/12/04 00:20:31 deraadt Exp $ */ /*- * Copyright (c) 2001 Ross Harvey @@ -89,7 +89,7 @@ struct kframe { - int kargc; + long kargc; char *kargv[1]; /* size depends on kargc */ char kargstr[1]; /* size varies */ char kenvstr[1]; /* size varies */ @@ -116,13 +116,8 @@ struct kframe { asm(" dla $28,_gp \n" \ " daddiu %0,$29,32" : "=r" (kfp)) #else -#if defined(__GNUC__) && __GNUC__ > 3 #define SETUP_KFP(kfp) \ - asm(" daddiu %0,$29,64" : "=r" (kfp)) -#else -#define SETUP_KFP(kfp) \ - asm(" daddiu %0,$29,80" : "=r" (kfp)) -#endif + asm(" daddiu %0,$29,48" : "=r" (kfp)) #endif |