Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sh5/sh5 Cast __greg_t to/from caddr_t via intptr_t.



details:   https://anonhg.NetBSD.org/src/rev/80af6fe62a65
branches:  trunk
changeset: 545995:80af6fe62a65
user:      scw <scw%NetBSD.org@localhost>
date:      Fri Apr 18 21:07:35 2003 +0000

description:
Cast __greg_t to/from caddr_t via intptr_t.

diffstat:

 sys/arch/sh5/sh5/sig_machdep.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r b92c9991bee7 -r 80af6fe62a65 sys/arch/sh5/sh5/sig_machdep.c
--- a/sys/arch/sh5/sh5/sig_machdep.c    Fri Apr 18 20:54:59 2003 +0000
+++ b/sys/arch/sh5/sh5/sig_machdep.c    Fri Apr 18 21:07:35 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sig_machdep.c,v 1.13 2003/04/11 22:02:33 nathanw Exp $ */
+/*     $NetBSD: sig_machdep.c,v 1.14 2003/04/18 21:07:35 scw Exp $     */
 
 /*
  * Copyright 2002 Wasabi Systems, Inc.
@@ -264,8 +264,8 @@
 
        process_read_regs(l, (struct reg *)(void *)gr);
 
-       if ((ras_pc = (__greg_t)ras_lookup(l->l_proc,
-           (caddr_t) gr[_REG_PC])) != -1)
+       if ((ras_pc = (__greg_t)(intptr_t) ras_lookup(l->l_proc,
+           (caddr_t)(intptr_t) gr[_REG_PC])) != -1)
                gr[_REG_PC] = ras_pc;
 
        *flags |= _UC_CPU;



Home | Main Index | Thread Index | Old Index