Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/amd64/amd64 fix fallout from frame to frame * conve...



details:   https://anonhg.NetBSD.org/src/rev/7cdf8dafa45f
branches:  trunk
changeset: 552529:7cdf8dafa45f
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Sep 26 21:24:34 2003 +0000

description:
fix fallout from frame to frame * conversion.

diffstat:

 sys/arch/amd64/amd64/trap.c |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (59 lines):

diff -r 5d7591e25788 -r 7cdf8dafa45f sys/arch/amd64/amd64/trap.c
--- a/sys/arch/amd64/amd64/trap.c       Fri Sep 26 21:21:23 2003 +0000
+++ b/sys/arch/amd64/amd64/trap.c       Fri Sep 26 21:24:34 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: trap.c,v 1.9 2003/09/16 15:49:06 cl Exp $      */
+/*     $NetBSD: trap.c,v 1.10 2003/09/26 21:24:34 christos Exp $       */
 
 /*-
  * Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@@ -75,7 +75,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.9 2003/09/16 15:49:06 cl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.10 2003/09/26 21:24:34 christos Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -313,7 +313,7 @@
 #ifdef TRAP_SIGDEBUG
                printf("pid %d (%s): BUS at rip %lx addr %lx\n",
                    p->p_pid, p->p_comm, frame->tf_rip, rcr2());
-               frame_dump(&frame);
+               frame_dump(frame);
 #endif
                KERNEL_PROC_LOCK(l);
                (*p->p_emul->e_trapsignal)(l, SIGBUS, type & ~T_USER);
@@ -325,7 +325,7 @@
 #ifdef TRAP_SIGDEBUG
                printf("pid %d (%s): ILL at rip %lx addr %lx\n",
                    p->p_pid, p->p_comm, frame->tf_rip, rcr2());
-               frame_dump(&frame);
+               frame_dump(frame);
 #endif
                KERNEL_PROC_LOCK(l);
                (*p->p_emul->e_trapsignal)(l, SIGILL, type & ~T_USER);
@@ -488,7 +488,7 @@
 #ifdef TRAP_SIGDEBUG
                        printf("pid %d (%s): SEGV at rip %lx addr %lx\n",
                            p->p_pid, p->p_comm, frame->tf_rip, va);
-                       frame_dump(&frame);
+                       frame_dump(frame);
 #endif
                        (*p->p_emul->e_trapsignal)(l, SIGSEGV, T_PAGEFLT);
                }
@@ -531,11 +531,11 @@
                printf ("NMI ... going to debugger\n");
 #ifdef KGDB
 
-               if (kgdb_trap(type, &frame))
+               if (kgdb_trap(type, frame))
                        return;
 #endif
 #ifdef DDB
-               if (kdb_trap(type, 0, &frame))
+               if (kdb_trap(type, 0, frame))
                        return;
 #endif
 #endif /* KGDB || DDB */



Home | Main Index | Thread Index | Old Index