diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2012-03-18 12:01:04 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-03-28 18:32:25 +0100 |
commit | 2a64b83ebcd604d4ccad8a95480be418c8ccb451 (patch) | |
tree | 017c8121dc33483f7120d18694e93daa0711eaad /x86_64/configfrag.ac | |
parent | 95625ce8d154b28431d6e881e3c8012e860af362 (diff) | |
download | gnumach-2a64b83ebcd604d4ccad8a95480be418c8ccb451.tar.gz gnumach-2a64b83ebcd604d4ccad8a95480be418c8ccb451.tar.bz2 gnumach-2a64b83ebcd604d4ccad8a95480be418c8ccb451.zip |
build system: Add 64bit variant
Only Xen platform for now.
* Makefrag.am [HOST_x86_64]: Include x86_64/Makefrag.am.
* configure.ac: Include x86_64/configfrag.ac.
[default:x86_64] (host_platform): Set platform to xen.
* x86_64/Makefrag.am, x86_64/configfrag.ac: New files.
Diffstat (limited to 'x86_64/configfrag.ac')
-rw-r--r-- | x86_64/configfrag.ac | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/x86_64/configfrag.ac b/x86_64/configfrag.ac new file mode 100644 index 00000000..99db468f --- /dev/null +++ b/x86_64/configfrag.ac @@ -0,0 +1,48 @@ +dnl Configure fragment for x86_64. + +dnl Copyright (C) 1999, 2004, 2006, 2007, 2008 Free Software Foundation, Inc. + +dnl Permission to use, copy, modify and distribute this software and its +dnl documentation is hereby granted, provided that both the copyright +dnl notice and this permission notice appear in all copies of the +dnl software, derivative works or modified versions, and any portions +dnl thereof, and that both notices appear in supporting documentation. +dnl +dnl THE FREE SOFTWARE FOUNDATION ALLOWS FREE USE OF THIS SOFTWARE IN ITS +dnl "AS IS" CONDITION. THE FREE SOFTWARE FOUNDATION DISCLAIMS ANY +dnl LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE +dnl USE OF THIS SOFTWARE. + +# +# Definitions. +# + +[case $host_cpu in + x86_64)] + AM_CONDITIONAL([HOST_x86_64], [true]) + + # Some of the x86_64-specific code checks for these. + AC_DEFINE([__ELF__], [1], [__ELF__]) + + # Determines the size of the CPU cache line. + AC_DEFINE([CPU_L1_SHIFT], [6], [CPU_L1_SHIFT]) + + [# Does the architecture provide machine-specific interfaces? + mach_machine_routines=1;; + *)] + AM_CONDITIONAL([HOST_x86_64], [false])[;; +esac + +case $host_platform in + at)] + AM_CONDITIONAL([PLATFORM_at], [true])[;; + *)] + AM_CONDITIONAL([PLATFORM_at], [false])[;; +esac] + +AC_DEFINE([PAE], [1], [PAE support]) +AM_CONDITIONAL([enable_pae], [true]) + +dnl Local Variables: +dnl mode: autoconf +dnl End: |