template.h 2.64 KB
Newer Older
Jim Blandy's avatar
Jim Blandy committed
1
/* machine description file template.
2 3 4

Copyright (C) 1985, 1986, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
  2008, 2009, 2010  Free Software Foundation, Inc.
Jim Blandy's avatar
Jim Blandy committed
5 6 7

This file is part of GNU Emacs.

8
GNU Emacs is free software: you can redistribute it and/or modify
Jim Blandy's avatar
Jim Blandy committed
9
it under the terms of the GNU General Public License as published by
10 11
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Jim Blandy's avatar
Jim Blandy committed
12 13 14 15 16 17 18

GNU Emacs is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
19
along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
Jim Blandy's avatar
Jim Blandy committed
20

Glenn Morris's avatar
Glenn Morris committed
21
/* Define WORDS_BIG_ENDIAN if lowest-numbered byte in a word
22 23 24
   is the most significant byte.  */
#define WORDS_BIG_ENDIAN

Jim Blandy's avatar
Jim Blandy committed
25
/* Now define a symbol for the cpu type, if your compiler
Dan Nicolaescu's avatar
Dan Nicolaescu committed
26 27
   does not define it automatically.
   Ones defined so far include m68k and many others */
Jim Blandy's avatar
Jim Blandy committed
28 29 30 31 32

/* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend
   the 24-bit bit field into an int.  In other words, if bit fields
   are always unsigned.

Dan Nicolaescu's avatar
Dan Nicolaescu committed
33
   This flag only matters if you use USE_LISP_UNION_TYPE.  */
Jim Blandy's avatar
Jim Blandy committed
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
#define EXPLICIT_SIGN_EXTEND

/* Data type of load average, as read out of kmem.  */
#define LOAD_AVE_TYPE long

/* Convert that into an integer that is 100 for a load average of 1.0  */
#define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE)

/* Define VIRT_ADDR_VARIES if the virtual addresses of
   pure and impure space as loaded can vary, and even their
   relative order cannot be relied on.

   Otherwise Emacs assumes that text space precedes data space,
   numerically.  */
#define VIRT_ADDR_VARIES

/* Define NO_REMAP if memory segmentation makes it not work well
   to change the boundary between the text section and data section
   when Emacs is dumped.  If you define this, the preloaded Lisp
   code will not be sharable; but that's better than failing completely.  */
#define NO_REMAP
Jim Blandy's avatar
Jim Blandy committed
55

56 57
/* After adding support for a new machine, modify the large case
   statement in configure.in to recognize reasonable
58 59 60
   configuration names, and add a description of the system to
   `etc/MACHINES'.

61 62 63
   Check for any tests of $machine in configure.in, and add an entry
   for the new machine if needed.

64 65 66
   If you've just fixed a problem in an existing configuration file,
   you should also check `etc/MACHINES' to make sure its descriptions
   of known problems in that configuration should be updated.  */
Miles Bader's avatar
Miles Bader committed
67 68 69

/* arch-tag: d7dae0a9-4f99-4939-bef9-5738e1f33955
   (do not change this comment) */