summaryrefslogtreecommitdiffstats
path: root/sys/i386/include/asm.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/asm.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/asm.h')
-rw-r--r--sys/i386/include/asm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/i386/include/asm.h b/sys/i386/include/asm.h
index 64117d0..3148bb7 100644
--- a/sys/i386/include/asm.h
+++ b/sys/i386/include/asm.h
@@ -71,6 +71,7 @@
#define _ENTRY(x) _START_ENTRY; \
.globl CNAME(x); .type CNAME(x),@function; CNAME(x):
+#define END(x) .size x, . - x
#ifdef PROF
#define ALTENTRY(x) _ENTRY(x); \
OpenPOWER on IntegriCloud