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 Change a bcopy to a structure copy.



details:   https://anonhg.NetBSD.org/src/rev/5a18f6f8c212
branches:  trunk
changeset: 511866:5a18f6f8c212
user:      matt <matt%NetBSD.org@localhost>
date:      Thu Jun 28 15:23:39 2001 +0000

description:
Change a bcopy to a structure copy.

diffstat:

 sys/arch/powerpc/powerpc/vm_machdep.c |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (27 lines):

diff -r e63bd92ff8ae -r 5a18f6f8c212 sys/arch/powerpc/powerpc/vm_machdep.c
--- a/sys/arch/powerpc/powerpc/vm_machdep.c     Thu Jun 28 15:16:37 2001 +0000
+++ b/sys/arch/powerpc/powerpc/vm_machdep.c     Thu Jun 28 15:23:39 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vm_machdep.c,v 1.31 2001/06/23 03:10:59 matt Exp $     */
+/*     $NetBSD: vm_machdep.c,v 1.32 2001/06/28 15:23:39 matt Exp $     */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -244,7 +244,6 @@
 {
        struct coreseg cseg;
        struct md_coredump md_core;
-       struct trapframe *tf;
        struct pcb *pcb = &p->p_addr->u_pcb;
        int error;
 
@@ -253,8 +252,7 @@
        chdr->c_seghdrsize = ALIGN(sizeof cseg);
        chdr->c_cpusize = sizeof md_core;
 
-       tf = trapframe(p);
-       bcopy(tf, &md_core.frame, sizeof md_core.frame);
+       md_core.frame = *trapframe(p);
        if (pcb->pcb_flags & PCB_FPU) {
 #ifdef PPC_HAVE_FPU
                if (p->p_addr->u_pcb.pcb_fpcpu)



Home | Main Index | Thread Index | Old Index