Module Name: src
Committed By: matt
Date: Fri Apr 29 08:05:22 UTC 2011
Modified Files:
src/lib/libc/arch/mips/gen: _lwp.c
Log Message:
Use correct CALLFRAME_SIZ depending on ABI.
To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/lib/libc/arch/mips/gen/_lwp.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/arch/mips/gen/_lwp.c
diff -u src/lib/libc/arch/mips/gen/_lwp.c:1.7 src/lib/libc/arch/mips/gen/_lwp.c:1.8
--- src/lib/libc/arch/mips/gen/_lwp.c:1.7 Tue Mar 15 07:40:18 2011
+++ src/lib/libc/arch/mips/gen/_lwp.c Fri Apr 29 08:05:22 2011
@@ -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 *),