summaryrefslogtreecommitdiffstats
path: root/sys/i386/include/asmacros.h
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1996-05-31 01:08:08 +0000
committerpeter <peter@FreeBSD.org>1996-05-31 01:08:08 +0000
commitc183c8a9c007ad63234e92730742ca058e7d3e7e (patch)
treed718bd5d92603964613aae40b73bf20a0672e820 /sys/i386/include/asmacros.h
parentdbd9016f481c32476de013292a70a785b52c3279 (diff)
downloadFreeBSD-src-c183c8a9c007ad63234e92730742ca058e7d3e7e.zip
FreeBSD-src-c183c8a9c007ad63234e92730742ca058e7d3e7e.tar.gz
Jump some hoops to have the *.s code being able to be run through both an
ansi and traditional cpp. The nesting rules of macros are different, which required some changes. Use __CONCAT(x,y) instead of /**/. Redo some comments to use /* */ rather than "# comment" because the ansi cpp cares about those, and also cares about quote matching.
Diffstat (limited to 'sys/i386/include/asmacros.h')
-rw-r--r--sys/i386/include/asmacros.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/i386/include/asmacros.h b/sys/i386/include/asmacros.h
index 9863354..4ecabdf 100644
--- a/sys/i386/include/asmacros.h
+++ b/sys/i386/include/asmacros.h
@@ -30,13 +30,14 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: asmacros.h,v 1.6 1995/12/29 15:28:53 bde Exp $
+ * $Id: asmacros.h,v 1.7 1996/03/31 04:17:25 bde Exp $
*/
#ifndef _MACHINE_ASMACROS_H_
#define _MACHINE_ASMACROS_H_
#ifdef KERNEL
+#include <sys/cdefs.h>
/* XXX too much duplication in various asm*.h's and gprof.h's */
@@ -44,7 +45,7 @@
#define ALIGN_TEXT .align 2,0x90 /* 4-byte alignment, nop filled */
#define SUPERALIGN_TEXT .align 4,0x90 /* 16-byte alignment (better for 486), nop filled */
-#define GEN_ENTRY(name) ALIGN_TEXT; .globl _/**/name; _/**/name:
+#define GEN_ENTRY(name) ALIGN_TEXT; .globl __CONCAT(_,name); __CONCAT(_,name):
#define NON_GPROF_ENTRY(name) GEN_ENTRY(name)
#ifdef GPROF
OpenPOWER on IntegriCloud