summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include/asmacros.h
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1994-09-08 12:25:18 +0000
committerbde <bde@FreeBSD.org>1994-09-08 12:25:18 +0000
commitb186b56427d0841fef29d9d07ac4551af3a0a163 (patch)
tree5d3d8370201e756d5a497a3f748bbc0cd84ecb78 /sys/amd64/include/asmacros.h
parentb0b76e7d375fd26215073f7b45f531cf11f58c2a (diff)
downloadFreeBSD-src-b186b56427d0841fef29d9d07ac4551af3a0a163.zip
FreeBSD-src-b186b56427d0841fef29d9d07ac4551af3a0a163.tar.gz
Get all the definitions from DEFS.h and not directly from asmacros.h
if KERNEL is not defined. lib/msun/i387/*.S include asmacros.h to get the definitions of ENTRY(), etc. This is bogus since asmacros.h is only supposed to give definitions suitable for the kernel. The current definitions for the kernel almost worked but are missing the ".type" declarations. This caused the linker to print warnings about doubtful relocations for almost anything linked to libm[sun]. Uniformize name and use of idempotence identifier.
Diffstat (limited to 'sys/amd64/include/asmacros.h')
-rw-r--r--sys/amd64/include/asmacros.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/sys/amd64/include/asmacros.h b/sys/amd64/include/asmacros.h
index 6b4e27b..b2a6dc8 100644
--- a/sys/amd64/include/asmacros.h
+++ b/sys/amd64/include/asmacros.h
@@ -30,11 +30,13 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: asmacros.h,v 1.3 1994/08/02 07:38:40 davidg Exp $
+ * $Id: asmacros.h,v 1.4 1994/08/19 11:20:11 jkh Exp $
*/
-#ifndef _ASMACROS_H_
-#define _ASMACROS_H_ 1
+#ifndef _MACHINE_ASMACROS_H_
+#define _MACHINE_ASMACROS_H_
+
+#ifdef KERNEL
#define ALIGN_DATA .align 2 /* 4 byte alignment, zero filled */
#define ALIGN_TEXT .align 2,0x90 /* 4-byte alignment, nop filled */
@@ -85,8 +87,14 @@
#define NOP pushl %eax ; inb $0x84,%al ; inb $0x84,%al ; popl %eax
#endif
+#else /* !KERNEL */
+
+#include "/usr/src/lib/libc/i386/DEFS.h" /* XXX blech */
+
#ifndef RCSID
#define RCSID(a)
#endif
-#endif /* _ASMACROS_H_ */
+#endif /* KERNEL */
+
+#endif /* !_MACHINE_ASMACROS_H_ */
OpenPOWER on IntegriCloud