Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/powerpc In cpu_upcall, cast to register_t, ...



details:   https://anonhg.NetBSD.org/src/rev/3290f0e490cf
branches:  trunk
changeset: 541831:3290f0e490cf
user:      matt <matt%NetBSD.org@localhost>
date:      Sat Jan 18 23:43:24 2003 +0000

description:
In cpu_upcall, cast to register_t, not int.  (int is not LP64 friendly)

diffstat:

 sys/arch/powerpc/powerpc/powerpc_machdep.c |  16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diffs (31 lines):

diff -r 8c89153b3209 -r 3290f0e490cf sys/arch/powerpc/powerpc/powerpc_machdep.c
--- a/sys/arch/powerpc/powerpc/powerpc_machdep.c        Sat Jan 18 23:36:48 2003 +0000
+++ b/sys/arch/powerpc/powerpc/powerpc_machdep.c        Sat Jan 18 23:43:24 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: powerpc_machdep.c,v 1.15 2003/01/18 06:23:34 thorpej Exp $     */
+/*     $NetBSD: powerpc_machdep.c,v 1.16 2003/01/18 23:43:24 matt Exp $        */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -211,14 +211,14 @@
        /*
         * Build context to run handler in.
         */
-       tf->fixreg[1] = (int)((struct saframe *)sp - 1);
+       tf->fixreg[1] = (register_t)((struct saframe *)sp - 1);
        tf->lr = 0;
-       tf->fixreg[3] = (int)type;
-       tf->fixreg[4] = (int)sas;
-       tf->fixreg[5] = (int)nevents;
-       tf->fixreg[6] = (int)ninterrupted;
-       tf->fixreg[7] = (int)ap;
-       tf->srr0 = (int)upcall;
+       tf->fixreg[3] = (register_t)type;
+       tf->fixreg[4] = (register_t)sas;
+       tf->fixreg[5] = (register_t)nevents;
+       tf->fixreg[6] = (register_t)ninterrupted;
+       tf->fixreg[7] = (register_t)ap;
+       tf->srr0 = (register_t)upcall;
 
 }
 



Home | Main Index | Thread Index | Old Index