Module Name: src Committed By: matt Date: Thu Aug 20 21:49:24 UTC 2009
Modified Files: src/sys/arch/mips/mips [matt-nb5-mips64]: compat_13_machdep.c cpu_exec.c db_interface.c Log Message: No need to cast to (struct frame *) anymore. To generate a diff of this commit: cvs rdiff -u -r1.16 -r1.16.20.1 src/sys/arch/mips/mips/compat_13_machdep.c cvs rdiff -u -r1.50.54.1 -r1.50.54.1.4.1 src/sys/arch/mips/mips/cpu_exec.c cvs rdiff -u -r1.64 -r1.64.16.1 src/sys/arch/mips/mips/db_interface.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/mips/mips/compat_13_machdep.c diff -u src/sys/arch/mips/mips/compat_13_machdep.c:1.16 src/sys/arch/mips/mips/compat_13_machdep.c:1.16.20.1 --- src/sys/arch/mips/mips/compat_13_machdep.c:1.16 Thu Apr 24 18:39:21 2008 +++ src/sys/arch/mips/mips/compat_13_machdep.c Thu Aug 20 21:49:24 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: compat_13_machdep.c,v 1.16 2008/04/24 18:39:21 ad Exp $ */ +/* $NetBSD: compat_13_machdep.c,v 1.16.20.1 2009/08/20 21:49:24 matt Exp $ */ /* * Copyright 1996 The Board of Trustees of The Leland Stanford @@ -15,7 +15,7 @@ #include <sys/cdefs.h> /* RCS ID & Copyright macro defns */ -__KERNEL_RCSID(0, "$NetBSD: compat_13_machdep.c,v 1.16 2008/04/24 18:39:21 ad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: compat_13_machdep.c,v 1.16.20.1 2009/08/20 21:49:24 matt Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -68,7 +68,7 @@ return (EINVAL); /* Resture the register context. */ - f = (struct frame *)l->l_md.md_regs; + f = l->l_md.md_regs; f->f_regs[_R_PC] = ksc.sc_pc; f->f_regs[_R_MULLO] = ksc.mullo; f->f_regs[_R_MULHI] = ksc.mulhi; Index: src/sys/arch/mips/mips/cpu_exec.c diff -u src/sys/arch/mips/mips/cpu_exec.c:1.50.54.1 src/sys/arch/mips/mips/cpu_exec.c:1.50.54.1.4.1 --- src/sys/arch/mips/mips/cpu_exec.c:1.50.54.1 Wed Apr 1 00:25:21 2009 +++ src/sys/arch/mips/mips/cpu_exec.c Thu Aug 20 21:49:24 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: cpu_exec.c,v 1.50.54.1 2009/04/01 00:25:21 snj Exp $ */ +/* $NetBSD: cpu_exec.c,v 1.50.54.1.4.1 2009/08/20 21:49:24 matt Exp $ */ /* * Copyright (c) 1992, 1993 @@ -35,7 +35,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: cpu_exec.c,v 1.50.54.1 2009/04/01 00:25:21 snj Exp $"); +__KERNEL_RCSID(0, "$NetBSD: cpu_exec.c,v 1.50.54.1.4.1 2009/08/20 21:49:24 matt Exp $"); #include "opt_compat_netbsd.h" #include "opt_compat_ultrix.h" @@ -130,7 +130,7 @@ u_long stack; { struct ecoff_exechdr *execp = (struct ecoff_exechdr *)epp->ep_hdr; - struct frame *f = (struct frame *)l->l_md.md_regs; + struct frame *f = l->l_md.md_regs; f->f_regs[_R_GP] = (register_t)execp->a.gp_value; } Index: src/sys/arch/mips/mips/db_interface.c diff -u src/sys/arch/mips/mips/db_interface.c:1.64 src/sys/arch/mips/mips/db_interface.c:1.64.16.1 --- src/sys/arch/mips/mips/db_interface.c:1.64 Fri May 23 17:01:32 2008 +++ src/sys/arch/mips/mips/db_interface.c Thu Aug 20 21:49:24 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: db_interface.c,v 1.64 2008/05/23 17:01:32 tsutsui Exp $ */ +/* $NetBSD: db_interface.c,v 1.64.16.1 2009/08/20 21:49:24 matt Exp $ */ /* * Mach Operating System @@ -27,7 +27,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.64 2008/05/23 17:01:32 tsutsui Exp $"); +__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.64.16.1 2009/08/20 21:49:24 matt Exp $"); #include "opt_cputype.h" /* which mips CPUs do we support? */ #include "opt_ddb.h" @@ -176,7 +176,7 @@ db_active--; if (type & T_USER) - *(struct frame *)curlwp->l_md.md_regs = *f; + *curlwp->l_md.md_regs = *f; else { /* Synthetic full scale register context when trap happens */ tfp[TF_AST] = f->f_regs[_R_AST]; @@ -233,7 +233,7 @@ /* Should switch to kdb`s own stack here. */ if (type & T_USER) - *f = *(struct frame *)curlwp->l_md.md_regs; + *f = *curlwp->l_md.md_regs; else { /* Synthetic full scale register context when trap happens */ f->f_regs[_R_AST] = tfp[TF_AST];