summaryrefslogtreecommitdiff
path: root/sys/i386/include/cpufunc.h
diff options
context:
space:
mode:
authorTom Rhodes <trhodes@FreeBSD.org>2004-03-12 21:45:33 +0000
committerTom Rhodes <trhodes@FreeBSD.org>2004-03-12 21:45:33 +0000
commita122cca95357f39039d19fd639373416dd863081 (patch)
tree6c034a25fc32204c3b23ab4ef2656ae5983b7ea5 /sys/i386/include/cpufunc.h
parent06d6e4fcfeea94893ddd82264e531131939f2b80 (diff)
Notes
Diffstat (limited to 'sys/i386/include/cpufunc.h')
-rw-r--r--sys/i386/include/cpufunc.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/i386/include/cpufunc.h b/sys/i386/include/cpufunc.h
index 6d00fff304091..5b092f01d5afb 100644
--- a/sys/i386/include/cpufunc.h
+++ b/sys/i386/include/cpufunc.h
@@ -52,7 +52,7 @@ struct region_descriptor;
#define writew(va, d) (*(volatile u_int16_t *) (va) = (d))
#define writel(va, d) (*(volatile u_int32_t *) (va) = (d))
-#ifdef __GNUC__
+#if defined(__GNUC__) || defined(__INTEL_COMPILER)
static __inline void
breakpoint(void)
@@ -614,7 +614,7 @@ intr_restore(register_t eflags)
write_eflags(eflags);
}
-#else /* !__GNUC__ */
+#else /* !(__GNUC__ || __INTEL_COMPILER) */
int breakpoint(void);
u_int bsfl(u_int mask);
@@ -679,7 +679,7 @@ void wbinvd(void);
void write_eflags(u_int ef);
void wrmsr(u_int msr, u_int64_t newval);
-#endif /* __GNUC__ */
+#endif /* __GNUC__ || __INTEL_COMPILER */
void reset_dbregs(void);