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 Add an END macro. reorder EXTBL macro
details: https://anonhg.NetBSD.org/src/rev/31d6650a1813
branches: trunk
changeset: 787958:31d6650a1813
user: matt <matt%NetBSD.org@localhost>
date: Tue Jul 16 21:01:03 2013 +0000
description:
Add an END macro. reorder EXTBL macro
diffstat:
sys/arch/m68k/include/asm.h | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diffs (35 lines):
diff -r dd0a7ce3ace2 -r 31d6650a1813 sys/arch/m68k/include/asm.h
--- a/sys/arch/m68k/include/asm.h Tue Jul 16 20:49:41 2013 +0000
+++ b/sys/arch/m68k/include/asm.h Tue Jul 16 21:01:03 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: asm.h,v 1.28 2011/02/12 16:32:36 matt Exp $ */
+/* $NetBSD: asm.h,v 1.29 2013/07/16 21:01:03 matt Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -97,6 +97,7 @@
#define _ENTRY(name) \
.text; .even; .globl name; .type name,@function; name:
+#define END(name) .size name,.-name
#ifdef __ELF__
#define MCOUNT_ENTRY __mcount
@@ -245,13 +246,13 @@
/*
* Macros to hide shortcomings in the 68010.
*/
-#ifndef __mc68010__
-#define EXTBL(reg) \
- extbl reg
-#else /* __mc68010__ */
+#ifdef __mc68010__
#define EXTBL(reg) \
extw reg ; \
extl reg
+#else /* __mc68010__ */
+#define EXTBL(reg) \
+ extbl reg
#endif /* __mc68010__ */
#endif /* _M68K_ASM_H_ */
Home |
Main Index |
Thread Index |
Old Index