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 __cpu_simple_unlock() is called from _m...



details:   https://anonhg.NetBSD.org/src/rev/5fb1c30f5a3a
branches:  trunk
changeset: 814837:5fb1c30f5a3a
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Mon Apr 11 14:14:27 2016 +0000

description:
__cpu_simple_unlock() is called from _mcount(), so don't call mcount() from
__cpu_simple_unlock().
Kernel profiling should work again

diffstat:

 sys/arch/amd64/amd64/lock_stubs.S |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 6363384926a4 -r 5fb1c30f5a3a sys/arch/amd64/amd64/lock_stubs.S
--- a/sys/arch/amd64/amd64/lock_stubs.S Mon Apr 11 13:52:23 2016 +0000
+++ b/sys/arch/amd64/amd64/lock_stubs.S Mon Apr 11 14:14:27 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lock_stubs.S,v 1.25 2013/06/22 06:23:28 uebayasi Exp $ */
+/*     $NetBSD: lock_stubs.S,v 1.26 2016/04/11 14:14:27 bouyer Exp $   */
 
 /*-
  * Copyright (c) 2006, 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -319,7 +319,7 @@
        jmp     2b
 END(__cpu_simple_lock)
 
-ENTRY(__cpu_simple_unlock)
+NENTRY(__cpu_simple_unlock)
        movb    $0, (%rdi)
        ret
 END(__cpu_simple_unlock)



Home | Main Index | Thread Index | Old Index