aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64/include
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2017-11-23 11:40:16 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2017-11-23 11:40:16 +0000
commit383f241dce091911b9466f49c19c8746b233ba3e (patch)
tree02563556bd23b0e157a8ee5501cecf0296474fad /sys/amd64/include
parentee50062cfb85553ad933db2b2e5a85fe85705d57 (diff)
downloadsrc-383f241dce091911b9466f49c19c8746b233ba3e.tar.gz
src-383f241dce091911b9466f49c19c8746b233ba3e.zip
Remove lint support from system headers and MD x86 headers.
Reviewed by: dim, jhb Discussed with: imp Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D13156
Notes
Notes: svn path=/head/; revision=326123
Diffstat (limited to 'sys/amd64/include')
-rw-r--r--sys/amd64/include/asm.h4
-rw-r--r--sys/amd64/include/pcpu.h17
-rw-r--r--sys/amd64/include/profile.h4
3 files changed, 5 insertions, 20 deletions
diff --git a/sys/amd64/include/asm.h b/sys/amd64/include/asm.h
index 1db8de6433f9..bebc4df3d2c5 100644
--- a/sys/amd64/include/asm.h
+++ b/sys/amd64/include/asm.h
@@ -92,10 +92,10 @@
#define RCSID(x) .text; .asciz x
#undef __FBSDID
-#if !defined(lint) && !defined(STRIP_FBSDID)
+#if !defined(STRIP_FBSDID)
#define __FBSDID(s) .ident s
#else
#define __FBSDID(s) /* nothing */
-#endif /* not lint and not STRIP_FBSDID */
+#endif /* !STRIP_FBSDID */
#endif /* !_MACHINE_ASM_H_ */
diff --git a/sys/amd64/include/pcpu.h b/sys/amd64/include/pcpu.h
index af5e889f2107..16db9edc425f 100644
--- a/sys/amd64/include/pcpu.h
+++ b/sys/amd64/include/pcpu.h
@@ -74,18 +74,7 @@
#ifdef _KERNEL
-#ifdef lint
-
-extern struct pcpu *pcpup;
-
-#define get_pcpu() (pcpup)
-#define PCPU_GET(member) (pcpup->pc_ ## member)
-#define PCPU_ADD(member, val) (pcpup->pc_ ## member += (val))
-#define PCPU_INC(member) PCPU_ADD(member, 1)
-#define PCPU_PTR(member) (&pcpup->pc_ ## member)
-#define PCPU_SET(member, val) (pcpup->pc_ ## member = (val))
-
-#elif defined(__GNUCLIKE_ASM) && defined(__GNUCLIKE___TYPEOF)
+#if defined(__GNUCLIKE_ASM) && defined(__GNUCLIKE___TYPEOF)
/*
* Evaluates to the byte offset of the per-cpu variable name.
@@ -251,11 +240,11 @@ __curpcb(void)
#define IS_BSP() (PCPU_GET(cpuid) == 0)
-#else /* !lint || defined(__GNUCLIKE_ASM) && defined(__GNUCLIKE___TYPEOF) */
+#else /* !__GNUCLIKE_ASM || !__GNUCLIKE___TYPEOF */
#error "this file needs to be ported to your compiler"
-#endif /* lint, etc. */
+#endif /* __GNUCLIKE_ASM && __GNUCLIKE___TYPEOF */
#endif /* _KERNEL */
diff --git a/sys/amd64/include/profile.h b/sys/amd64/include/profile.h
index aba7910d589c..97af17d5e662 100644
--- a/sys/amd64/include/profile.h
+++ b/sys/amd64/include/profile.h
@@ -71,10 +71,6 @@
: "ax", "dx", "cx", "di", "si", "r8", "r9", "memory")
#define MEXITCOUNT_OVERHEAD_GETLABEL(labelp) \
__asm __volatile("movq $1b,%0" : "=rm" (labelp))
-#elif defined(lint)
-#define MCOUNT_OVERHEAD(label)
-#define MEXITCOUNT_OVERHEAD()
-#define MEXITCOUNT_OVERHEAD_GETLABEL()
#else
#error this file needs to be ported to your compiler
#endif /* !__GNUCLIKE_ASM */