kernel/vga: Remove VGA_NO_BIOS and VGA_ALT_SEQACCESS options.
[dragonfly.git] / sys / platform / pc64 / conf / kern.mk
1 # $FreeBSD: src/sys/conf/kern.mk,v 1.52 2007/05/24 21:53:42 obrien Exp $
2 # $DragonFly: src/sys/platform/pc64/conf/kern.mk,v 1.2 2008/08/29 17:07:15 dillon Exp $
3
4 #
5 # Warning flags for compiling the kernel and components of the kernel.
6 #
7 # For x86_64, we explicitly prohibit the use of FPU, SSE and other SIMD
8 # operations inside the kernel itself.  These operations are exclusively
9 # reserved for user applications.
10 #
11 CFLAGS+=        -mpreferred-stack-boundary=4
12 CFLAGS+=        -fno-stack-protector
13 CFLAGS+=        -mcmodel=kernel -mno-red-zone -mfpmath=387
14
15 CFLAGS+=        -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3
16
17 .if ${CCVER} == "gcc44" || ${CCVER} == "gcc47"
18 CFLAGS+=        -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -mno-sse4 -mno-sse4a \
19                 -mno-sse5 
20 CFLAGS+=        -mno-abm -mno-aes -mno-avx -mno-pclmul -mno-popcnt
21 .endif
22
23 .if ${CCVER} == "gcc47"
24 CFLAGS+=        -mno-avx2 -mno-fsgsbase -mno-rdrnd -mno-f16c
25 CFLAGS+=        -mno-fma -mno-fma4
26 CFLAGS+=        -mno-bmi -mno-bmi2
27 CFLAGS+=        -mno-xop -mno-lwp -mno-lzcnt -mno-tbm
28 .endif
29
30 CFLAGS+=        -msoft-float
31 CFLAGS+=        -fno-asynchronous-unwind-tables -fno-omit-frame-pointer
32
33 INLINE_LIMIT?=  8000