Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x86/x86 Remove ifdef GPROF.



details:   https://anonhg.NetBSD.org/src/rev/2ecf1d2e782d
branches:  trunk
changeset: 324060:2ecf1d2e782d
user:      maxv <maxv%NetBSD.org@localhost>
date:      Sat Jul 14 14:34:32 2018 +0000

description:
Remove ifdef GPROF.

diffstat:

 sys/arch/x86/x86/patch.c |  17 ++---------------
 1 files changed, 2 insertions(+), 15 deletions(-)

diffs (52 lines):

diff -r 55e83794a089 -r 2ecf1d2e782d sys/arch/x86/x86/patch.c
--- a/sys/arch/x86/x86/patch.c  Sat Jul 14 14:29:40 2018 +0000
+++ b/sys/arch/x86/x86/patch.c  Sat Jul 14 14:34:32 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: patch.c,v 1.34 2018/03/13 16:52:42 maxv Exp $  */
+/*     $NetBSD: patch.c,v 1.35 2018/07/14 14:34:32 maxv Exp $  */
 
 /*-
  * Copyright (c) 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: patch.c,v 1.34 2018/03/13 16:52:42 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: patch.c,v 1.35 2018/07/14 14:34:32 maxv Exp $");
 
 #include "opt_lockdebug.h"
 #ifdef i386
@@ -119,17 +119,6 @@
        memcpy(to_s, from_s, (uintptr_t)to_e - (uintptr_t)to_s);
        if (pcrel != NULL)
                adjust_jumpoff(pcrel, from_s, to_s);
-
-#ifdef GPROF
-#ifdef i386
-#define        MCOUNT_CALL_OFFSET      3
-#endif
-#ifdef __x86_64__
-#define        MCOUNT_CALL_OFFSET      5
-#endif
-       /* Patch mcount call offset */
-       adjust_jumpoff((uint8_t *)from_s + MCOUNT_CALL_OFFSET, from_s, to_s);
-#endif
 }
 
 static inline void __unused
@@ -209,7 +198,6 @@
 
        x86_patch_window_open(&psl, &cr0);
 
-#if !defined(GPROF)
        if (!early && ncpu == 1) {
 #ifndef LOCKDEBUG
                /*
@@ -244,7 +232,6 @@
                    NULL
                );
        }
-#endif /* GPROF */
 
 #ifdef i386
        /*



Home | Main Index | Thread Index | Old Index