summaryrefslogtreecommitdiffstats
path: root/sys/i386/include/asmacros.h
diff options
context:
space:
mode:
authorjkoshy <jkoshy@FreeBSD.org>2007-08-22 04:26:07 +0000
committerjkoshy <jkoshy@FreeBSD.org>2007-08-22 04:26:07 +0000
commit106a0e34d4aa75f6872600089a1f168bebf94828 (patch)
tree2d0bfd178290264039a2692eeb39073fc508cafe /sys/i386/include/asmacros.h
parent0cd8d0c09b9e989c94512927b7420e420ee21087 (diff)
downloadFreeBSD-src-106a0e34d4aa75f6872600089a1f168bebf94828.zip
FreeBSD-src-106a0e34d4aa75f6872600089a1f168bebf94828.tar.gz
Define an END() macro for use in i386 and amd64 assembly code, akin
to the one available on the ia64, sparc64, and sun4v architectures. Approved by: re (kensmith)
Diffstat (limited to 'sys/i386/include/asmacros.h')
-rw-r--r--sys/i386/include/asmacros.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/i386/include/asmacros.h b/sys/i386/include/asmacros.h
index 2ea368d..fbc93b7 100644
--- a/sys/i386/include/asmacros.h
+++ b/sys/i386/include/asmacros.h
@@ -57,6 +57,8 @@
#define NON_GPROF_ENTRY(name) GEN_ENTRY(name)
#define NON_GPROF_RET .byte 0xc3 /* opcode for `ret' */
+#define END(name) .size name, . - name
+
#ifdef GPROF
/*
* __mcount is like [.]mcount except that doesn't require its caller to set
OpenPOWER on IntegriCloud