diff options
author | iap10@freefall.cl.cam.ac.uk <iap10@freefall.cl.cam.ac.uk> | 2005-04-18 21:59:54 +0000 |
---|---|---|
committer | iap10@freefall.cl.cam.ac.uk <iap10@freefall.cl.cam.ac.uk> | 2005-04-18 21:59:54 +0000 |
commit | 7fbf26132f6efb5209009e990c5ea12890b0f73b (patch) | |
tree | 36bf9732128b59105ae4356d896a1c08a98d54b2 /freebsd-5.3-xen-sparse | |
parent | 6cabb121735a7385c2ff6b9b18c30f43d26b684a (diff) | |
parent | e7b98aa0557ad936846f32636b4b7596133f6a0f (diff) | |
download | xen-7fbf26132f6efb5209009e990c5ea12890b0f73b.tar.gz xen-7fbf26132f6efb5209009e990c5ea12890b0f73b.tar.bz2 xen-7fbf26132f6efb5209009e990c5ea12890b0f73b.zip |
bitkeeper revision 1.1320 (42642ddapSMPP0vKzhY_zJP6GaMQ7A)
Merge freefall.cl.cam.ac.uk:/auto/groups/xeno/users/iap10/xeno-clone/xen-2.0-testing.bk
into freefall.cl.cam.ac.uk:/auto/groups/xeno/users/iap10/xeno-clone/xen-unstable.bk
Diffstat (limited to 'freebsd-5.3-xen-sparse')
-rw-r--r-- | freebsd-5.3-xen-sparse/conf/kern.mk | 100 |
1 files changed, 100 insertions, 0 deletions
diff --git a/freebsd-5.3-xen-sparse/conf/kern.mk b/freebsd-5.3-xen-sparse/conf/kern.mk new file mode 100644 index 0000000000..b5e85e60f9 --- /dev/null +++ b/freebsd-5.3-xen-sparse/conf/kern.mk @@ -0,0 +1,100 @@ +# $FreeBSD: src/sys/conf/kern.mk,v 1.42 2004/05/14 13:35:46 cognet Exp $ + +# +# Warning flags for compiling the kernel and components of the kernel. +# +# Note that the newly added -Wcast-qual is responsible for generating +# most of the remaining warnings. Warnings introduced with -Wall will +# also pop up, but are easier to fix. +.if ${CC} == "icc" +#CWARNFLAGS= -w2 # use this if you are terribly bored +CWARNFLAGS= +.else +CWARNFLAGS?= -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes \ + -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual \ + -fformat-extensions +.endif +# -std=c99 anonymous unions are non-compliant +# +# The following flags are next up for working on: +# -W + +# +# On the i386, do not align the stack to 16-byte boundaries. Otherwise GCC +# 2.95 adds code to the entry and exit point of every function to align the +# stack to 16-byte boundaries -- thus wasting approximately 12 bytes of stack +# per function call. While the 16-byte alignment may benefit micro benchmarks, +# it is probably an overall loss as it makes the code bigger (less efficient +# use of code cache tag lines) and uses more stack (less efficient use of data +# cache tag lines) +# +.if ${MACHINE_ARCH} == "i386" && ${CC} != "icc" +CFLAGS+= -mno-align-long-strings -mpreferred-stack-boundary=2 +INLINE_LIMIT?= 8000 +.endif + +# +# On the alpha, make sure that we don't use floating-point registers and +# allow the use of BWX etc instructions (only needed for low-level i/o). +# Also, reserve register t7 to point at per-cpu global variables. +# +.if ${MACHINE_ARCH} == "alpha" +CFLAGS+= -mno-fp-regs -ffixed-8 -Wa,-mev6 +INLINE_LIMIT?= 15000 +.endif + +.if ${MACHINE_ARCH} == "arm" +INLINE_LIMIT?= 8000 +.endif +# +# For IA-64, we use r13 for the kernel globals pointer and we only use +# a very small subset of float registers for integer divides. +# +.if ${MACHINE_ARCH} == "ia64" +CFLAGS+= -ffixed-r13 -mfixed-range=f32-f127 -mno-sdata +INLINE_LIMIT?= 15000 +.endif + +# +# For sparc64 we want medlow code model, and we tell gcc to use floating +# point emulation. This avoids using floating point registers for integer +# operations which it has a tendency to do. +# +.if ${MACHINE_ARCH} == "sparc64" +CFLAGS+= -mcmodel=medlow -msoft-float +INLINE_LIMIT?= 15000 +.endif + +# +# For AMD64, use a medium model for now. We'll switch to "kernel" +# once pmap is ready. Be excessively careful to not generate FPU code. +# +.if ${MACHINE_ARCH} == "amd64" +CFLAGS+= -mcmodel=kernel -mno-red-zone \ + -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow \ + -msoft-float -fno-asynchronous-unwind-tables +INLINE_LIMIT?= 8000 +.endif + +# +# For PowerPC we tell gcc to use floating point emulation. This avoids using +# floating point registers for integer operations which it has a tendency to do. +# +.if ${MACHINE_ARCH} == "powerpc" +CFLAGS+= -msoft-float +INLINE_LIMIT?= 15000 +.endif + +# +# GCC 3.0 and above like to do certain optimizations based on the +# assumption that the program is linked against libc. Stop this. +# +.if ${CC} == "icc" +CFLAGS+= -nolib_inline +.else +CFLAGS+= -ffreestanding +.endif + +.if ${CC} == "icc" +CFLAGS+= -restrict +.endif |