Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/arch/mips/gen Use correct CALLFRAME_SIZ depending o...



details:   https://anonhg.NetBSD.org/src/rev/5eaec1bee805
branches:  trunk
changeset: 764620:5eaec1bee805
user:      matt <matt%NetBSD.org@localhost>
date:      Fri Apr 29 08:05:22 2011 +0000

description:
Use correct CALLFRAME_SIZ depending on ABI.

diffstat:

 lib/libc/arch/mips/gen/_lwp.c |  10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diffs (31 lines):

diff -r 059aecbc8b80 -r 5eaec1bee805 lib/libc/arch/mips/gen/_lwp.c
--- a/lib/libc/arch/mips/gen/_lwp.c     Fri Apr 29 06:00:33 2011 +0000
+++ b/lib/libc/arch/mips/gen/_lwp.c     Fri Apr 29 08:05:22 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: _lwp.c,v 1.7 2011/03/15 07:40:18 matt Exp $    */
+/*     $NetBSD: _lwp.c,v 1.8 2011/04/29 08:05:22 matt Exp $    */
 
 /*
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: _lwp.c,v 1.7 2011/03/15 07:40:18 matt Exp $");
+__RCSID("$NetBSD: _lwp.c,v 1.8 2011/04/29 08:05:22 matt Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include "namespace.h"
@@ -40,7 +40,11 @@
 #include <lwp.h>
 #include <stdlib.h>
 
-#define CALLFRAME_SIZ  24
+#if defined(__mips_o32) || defined(__mips_o64)
+#define CALLFRAME_SIZ  (6 * sizeof(void *))
+#else
+#define CALLFRAME_SIZ  (4 * sizeof(uint64_t))
+#endif
 
 void
 _lwp_makecontext(ucontext_t *u, void (*start)(void *),



Home | Main Index | Thread Index | Old Index