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 Use register_t instead of int for r...



details:   https://anonhg.NetBSD.org/src/rev/139021209733
branches:  trunk
changeset: 793884:139021209733
user:      matt <matt%NetBSD.org@localhost>
date:      Fri Feb 28 05:38:53 2014 +0000

description:
Use register_t instead of int for register values.

diffstat:

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

diffs (36 lines):

diff -r 588048f3e5c5 -r 139021209733 sys/arch/powerpc/powerpc/fixup.c
--- a/sys/arch/powerpc/powerpc/fixup.c  Fri Feb 28 05:38:15 2014 +0000
+++ b/sys/arch/powerpc/powerpc/fixup.c  Fri Feb 28 05:38:53 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fixup.c,v 1.6 2013/11/07 15:26:36 nisimura Exp $       */
+/*     $NetBSD: fixup.c,v 1.7 2014/02/28 05:38:53 matt Exp $   */
 /*-
  * Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -36,7 +36,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(0, "$NetBSD: fixup.c,v 1.6 2013/11/07 15:26:36 nisimura Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fixup.c,v 1.7 2014/02/28 05:38:53 matt Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -146,7 +146,7 @@
                        case OPC_ADDIS: {
                                const u_int rs = i.i_d.i_rs;
                                const u_int ra = i.i_d.i_ra;
-                               int d = i.i_d.i_d << ((i.i_d.i_opcd & 1) * 16);
+                               register_t d = i.i_d.i_d << ((i.i_d.i_opcd & 1) * 16);
                                if (ra) {
                                        KASSERT(valid_mask & (1 << ra));
                                        d += fixreg[ra];
@@ -158,7 +158,7 @@
                        case OPC_LWZ: {
                                const u_int rs = i.i_d.i_rs;
                                const u_int ra = i.i_d.i_ra;
-                               int addr = i.i_d.i_d;
+                               register_t addr = i.i_d.i_d;
                                if (ra) {
                                        KASSERT(valid_mask & (1 << ra));
                                        addr += fixreg[ra];



Home | Main Index | Thread Index | Old Index