Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm26/include rename mcount functions out of user n...



details:   https://anonhg.NetBSD.org/src/rev/610a9073984e
branches:  trunk
changeset: 487520:610a9073984e
user:      bjh21 <bjh21%NetBSD.org@localhost>
date:      Thu Jun 08 23:25:05 2000 +0000

description:
rename mcount functions out of user namespace

diffstat:

 sys/arch/arm26/include/profile.h |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (40 lines):

diff -r 6e3464ae9a83 -r 610a9073984e sys/arch/arm26/include/profile.h
--- a/sys/arch/arm26/include/profile.h  Thu Jun 08 23:23:41 2000 +0000
+++ b/sys/arch/arm26/include/profile.h  Thu Jun 08 23:25:05 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: profile.h,v 1.1 2000/05/09 21:56:00 bjh21 Exp $ */
+/* $NetBSD: profile.h,v 1.2 2000/06/08 23:25:05 bjh21 Exp $ */
 
 /*
  * Copyright (c) 1995-1996 Mark Brinicombe
@@ -39,9 +39,9 @@
 #define        MCOUNT                                                          \
        __asm__(".text");                                               \
        __asm__(".align 0");                                            \
-       __asm__(".type  mcount,%function");                             \
-       __asm__(".global        mcount");                               \
-       __asm__("mcount:");                                             \
+       __asm__(".type  __mcount,%function");                           \
+       __asm__(".global        __mcount");                             \
+       __asm__("__mcount:");                                           \
        /*                                                              \
         * Preserve registers that are trashed during mcount            \
         */                                                             \
@@ -60,7 +60,7 @@
        /*                                                              \
         * Call the real mcount code                                    \
         */                                                             \
-       __asm__("bl     __mcount");                                     \
+       __asm__("bl     _mcount");                                      \
        /*                                                              \
         * Restore registers that were trashed during mcount            \
         */                                                             \
@@ -71,6 +71,6 @@
  * Note that we assume splhigh() and splx() cannot call mcount()
  * recursively.
  */
-#define        MCOUNT_ENTER    s = splhigh()
-#define        MCOUNT_EXIT     splx(s)
+#define        MCOUNT_ENTER    int_off()
+#define        MCOUNT_EXIT     int_on()
 #endif /* _KERNEL */



Home | Main Index | Thread Index | Old Index