Module Name: src
Committed By: matt
Date: Tue Aug 18 06:46:00 UTC 2009
Modified Files:
src/lib/libc/arch/mips/gen [matt-nb5-mips64]: makecontext.c
Log Message:
Dont case pointers to __greg_t, use intptr_t (pointers on mips are signed)
To generate a diff of this commit:
cvs rdiff -u -r1.4.14.1 -r1.4.14.2 src/lib/libc/arch/mips/gen/makecontext.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/makecontext.c
diff -u src/lib/libc/arch/mips/gen/makecontext.c:1.4.14.1 src/lib/libc/arch/mips/gen/makecontext.c:1.4.14.2
--- src/lib/libc/arch/mips/gen/makecontext.c:1.4.14.1 Sun Aug 16 03:36:02 2009
+++ src/lib/libc/arch/mips/gen/makecontext.c Tue Aug 18 06:45:59 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: makecontext.c,v 1.4.14.1 2009/08/16 03:36:02 matt Exp $ */
+/* $NetBSD: makecontext.c,v 1.4.14.2 2009/08/18 06:45:59 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: makecontext.c,v 1.4.14.1 2009/08/16 03:36:02 matt Exp $");
+__RCSID("$NetBSD: makecontext.c,v 1.4.14.2 2009/08/18 06:45:59 matt Exp $");
#endif
#include <inttypes.h>
@@ -65,10 +65,10 @@
((uintptr_t)sp & ~0xf); /* Align on quad-word boundary. */
#endif
- gr[_REG_SP] = (__greg_t)sp;
- gr[_REG_RA] = (__greg_t)__resumecontext;
- gr[_REG_T9] = (__greg_t)func; /* required for .abicalls */
- gr[_REG_EPC] = (__greg_t)func;
+ gr[_REG_SP] = (intptr_t)sp;
+ gr[_REG_RA] = (intptr_t)__resumecontext;
+ gr[_REG_T9] = (intptr_t)func; /* required for .abicalls */
+ gr[_REG_EPC] = (intptr_t)func;
/* Construct argument list. */
va_start(ap, argc);