mirror of
https://github.com/opnsense/src.git
synced 2026-04-26 00:27:08 -04:00
Add AMD64 hooks
This commit is contained in:
parent
e9442e03ca
commit
a15febf91b
1 changed files with 9 additions and 0 deletions
|
|
@ -52,6 +52,15 @@ CFLAGS+= -ffixed-r13 -mfixed-range=f32-f127 -mno-sdata
|
|||
CFLAGS+= -mcmodel=medlow -msoft-float
|
||||
.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=medium -mno-red-zone \
|
||||
-mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow -msoft-float
|
||||
.endif
|
||||
|
||||
#
|
||||
# GCC 3.0 and above like to do certain optimizations based on the
|
||||
# assumption that the program is linked against libc. Stop this.
|
||||
|
|
|
|||
Loading…
Reference in a new issue