Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/m68k/include Revert previous change. I cannot see w...



details:   https://anonhg.NetBSD.org/src/rev/421626359c4d
branches:  trunk
changeset: 499552:421626359c4d
user:      leo <leo%NetBSD.org@localhost>
date:      Wed Nov 22 12:39:03 2000 +0000

description:
Revert previous change. I cannot see why this ever worked... Pointed out
by Steve Woodford.

diffstat:

 sys/arch/m68k/include/profile.h |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (33 lines):

diff -r 7abb2a071e30 -r 421626359c4d sys/arch/m68k/include/profile.h
--- a/sys/arch/m68k/include/profile.h   Wed Nov 22 11:47:17 2000 +0000
+++ b/sys/arch/m68k/include/profile.h   Wed Nov 22 12:39:03 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: profile.h,v 1.8 2000/10/19 12:15:53 leo Exp $  */
+/*     $NetBSD: profile.h,v 1.9 2000/11/22 12:39:03 leo Exp $  */
 
 /*
  * Copyright (c) 1992, 1993
@@ -40,8 +40,8 @@
 #define        MCOUNT \
 extern void mcount __P((void)) __asm__("mcount"); void mcount() { \
        int selfpc, frompcindex; \
-       __asm__("movl %a6@(4),%0" : "=r" (selfpc)); \
-       __asm__("movl %a6@(0)@(4),%0" : "=r" (frompcindex)); \
+       __asm__("movl %%a6@(4),%0" : "=r" (selfpc)); \
+       __asm__("movl %%a6@(0)@(4),%0" : "=r" (frompcindex)); \
        _mcount(frompcindex, selfpc); \
 }
 
@@ -53,9 +53,9 @@
  * recursively.
  */
 #define MCOUNT_ENTER \
-       __asm__("movw   %sr,%0" : "=g" (s)); \
-       __asm__("movw   #0x2700,%sr")
+       __asm__("movw   %%sr,%0" : "=g" (s)); \
+       __asm__("movw   #0x2700,%%sr")
 
 #define MCOUNT_EXIT \
-       __asm__("movw   %0,%sr" : : "g" (s))
+       __asm__("movw   %0,%%sr" : : "g" (s))
 #endif /* _KERNEL */



Home | Main Index | Thread Index | Old Index