Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Cast register type via intptr_t before cast to poin...



details:   https://anonhg.NetBSD.org/src/rev/4d734f9a2e2d
branches:  trunk
changeset: 568496:4d734f9a2e2d
user:      he <he%NetBSD.org@localhost>
date:      Tue Jul 20 14:56:10 2004 +0000

description:
Cast register type via intptr_t before cast to pointer.
Fixes build problem for evbsh5.

diffstat:

 sys/kern/kern_sa.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 996fe7e1fb3d -r 4d734f9a2e2d sys/kern/kern_sa.c
--- a/sys/kern/kern_sa.c        Tue Jul 20 14:34:27 2004 +0000
+++ b/sys/kern/kern_sa.c        Tue Jul 20 14:56:10 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_sa.c,v 1.53 2004/07/18 21:29:26 chs Exp $ */
+/*     $NetBSD: kern_sa.c,v 1.54 2004/07/20 14:56:10 he Exp $  */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_sa.c,v 1.53 2004/07/18 21:29:26 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_sa.c,v 1.54 2004/07/20 14:56:10 he Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -802,7 +802,8 @@
 
        if (l) {
                getucontext(l, &ss->ss_captured.ss_ctx);
-               sp = (void *)_UC_MACHINE_SP(&ss->ss_captured.ss_ctx);
+               sp = (void *)
+                       ((intptr_t)_UC_MACHINE_SP(&ss->ss_captured.ss_ctx));
                sp = STACK_ALIGN(sp, ~_UC_UCONTEXT_ALIGN);
                ucsize = roundup(sizeof(ucontext_t), (~_UC_UCONTEXT_ALIGN) + 1);
                ss->ss_captured.ss_sa.sa_context = (ucontext_t *)



Home | Main Index | Thread Index | Old Index