PERFORCE change 28461 for review

John Baldwin jhb at FreeBSD.org
Tue Apr 8 08:24:02 PDT 2003


On 07-Apr-2003 Peter Wemm wrote:
> http://perforce.freebsd.org/chv.cgi?CH=28461
> 
> Change 28461 by peter at peter_daintree on 2003/04/07 16:35:32
> 
>       use -mcmodel=medium for hammer.  Otherwise it generates
>       32 bit instructions for things like invltlb().  kernel model
>       comes later.

Side topic: are we going to call it amd64 some day instead of x86-64?

> Affected files ...
> 
> .. //depot/projects/hammer/sys/conf/kern.mk#3 edit
> 
> Differences ...
> 
> ==== //depot/projects/hammer/sys/conf/kern.mk#3 (text+ko) ====
> 
> @@ -53,6 +53,14 @@
>  .endif
>  
>  #
> +# For AMD x86-64, use a medium model for now.  We'll switch to "kernel"
> +# once pmap is ready.
> +#
> +.if ${MACHINE_ARCH} == "x86_64"
> +CFLAGS+=     -mcmodel=medium
> +.endif
> +
> +#
>  # GCC 3.0 and above like to do certain optimizations based on the
>  # assumption that the program is linked against libc.  Stop this.
>  #

-- 

John Baldwin <jhb at FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/


More information about the p4-projects mailing list