summaryrefslogtreecommitdiffstats
path: root/sys/i386/include/cpu.h
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1993-07-27 10:52:31 +0000
committerdg <dg@FreeBSD.org>1993-07-27 10:52:31 +0000
commited0c2480407bece983d693e1753de8d830a5f5ba (patch)
treef74d745c1c162578afcb421239425fdd31e58e8a /sys/i386/include/cpu.h
parent17f98e8cfc1b74c9d12ce4853fc1d7635a20dfb1 (diff)
downloadFreeBSD-src-ed0c2480407bece983d693e1753de8d830a5f5ba.zip
FreeBSD-src-ed0c2480407bece983d693e1753de8d830a5f5ba.tar.gz
* Applied fixes from Bruce Evans to fix COW bugs, >1MB kernel loading,
profiling, and various protection checks that cause security holes and system crashes. * Changed min/max/bcmp/ffs/strlen to be static inline functions - included from cpufunc.h in via systm.h. This change improves performance in many parts of the kernel - up to 5% in the networking layer alone. Note that this requires systm.h to be included in any file that uses these functions otherwise it won't be able to find them during the load. * Fixed incorrect call to splx() in if_is.c * Fixed bogus variable assignment to splx() in if_ed.c
Diffstat (limited to 'sys/i386/include/cpu.h')
-rw-r--r--sys/i386/include/cpu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/i386/include/cpu.h b/sys/i386/include/cpu.h
index 583d76c..9e09dd4 100644
--- a/sys/i386/include/cpu.h
+++ b/sys/i386/include/cpu.h
@@ -53,10 +53,12 @@
* these are defined to get generic functions
* rather than inline or machine-dependent implementations
*/
+#if 0
#define NEED_MINMAX /* need {,i,l,ul}{min,max} functions */
#define NEED_FFS /* need ffs function */
#define NEED_BCMP /* need bcmp function */
#define NEED_STRLEN /* need strlen function */
+#endif
#define cpu_exec(p) /* nothing */
OpenPOWER on IntegriCloud