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 Use c89 function declarations in MCOUN...
details: https://anonhg.NetBSD.org/src/rev/117612d6a90b
branches: trunk
changeset: 778310:117612d6a90b
user: he <he%NetBSD.org@localhost>
date: Wed Mar 21 19:59:18 2012 +0000
description:
Use c89 function declarations in MCOUNT definition.
diffstat:
sys/arch/m68k/include/profile.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r b9bcaad7008b -r 117612d6a90b sys/arch/m68k/include/profile.h
--- a/sys/arch/m68k/include/profile.h Wed Mar 21 18:01:34 2012 +0000
+++ b/sys/arch/m68k/include/profile.h Wed Mar 21 19:59:18 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: profile.h,v 1.19 2006/08/07 23:24:55 tsutsui Exp $ */
+/* $NetBSD: profile.h,v 1.20 2012/03/21 19:59:18 he Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -43,7 +43,7 @@
#define MCOUNT \
extern void mcount(void) __asm(MCOUNT_ENTRY) \
__attribute__((__no_instrument_function__)); \
-void mcount() { \
+void mcount(void) { \
int selfpc, frompcindex; \
__asm("movl %%a6@(4),%0" : "=r" (selfpc)); \
__asm("movl %%a6@(0)@(4),%0" : "=r" (frompcindex)); \
@@ -56,7 +56,7 @@
* to do something different.
*/
#define MCOUNT \
-extern void mcount(void) __asm("mcount"); void mcount() { \
+extern void mcount(void) __asm("mcount"); void mcount(void) { \
int selfpc, frompcindex; \
__asm("movl %%a6@(4),%0" : "=r" (selfpc)); \
__asm("movl %%a6@(0),%%a0 ; movl %%a0@(4),%0" : "=r" (frompcindex) : /* no inputs */ : "a0"); \
Home |
Main Index |
Thread Index |
Old Index