aboutsummaryrefslogtreecommitdiffstats
path: root/src/m
diff options
context:
space:
mode:
authorRichard M. Stallman2001-12-11 06:34:37 +0000
committerRichard M. Stallman2001-12-11 06:34:37 +0000
commit383c5d6ee0b0dfe2843196b1e01d090ed2467e9d (patch)
treeeb058a3c1f15ba3b3815cd2097e2156052d99635 /src/m
parent70da46c31cfe29505f9e2cb6f3ef44dc260b3898 (diff)
downloademacs-383c5d6ee0b0dfe2843196b1e01d090ed2467e9d.tar.gz
emacs-383c5d6ee0b0dfe2843196b1e01d090ed2467e9d.zip
Split the __hpux conditional into the parts
that are right for GNU/Linux too and the parts that are not. Use the former if GNU_LINUX. (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
Diffstat (limited to 'src/m')
-rw-r--r--src/m/hp800.h59
1 files changed, 41 insertions, 18 deletions
diff --git a/src/m/hp800.h b/src/m/hp800.h
index 3f2d9f7f5e6..26ce5479617 100644
--- a/src/m/hp800.h
+++ b/src/m/hp800.h
@@ -85,7 +85,9 @@ Boston, MA 02111-1307, USA. */
85#define bcmp memcmp 85#define bcmp memcmp
86#endif 86#endif
87 87
88#ifdef __hpux 88/* Common definitions for HPUX and GNU/Linux. */
89
90#if defined (__hpux) || defined (GNU_LINUX)
89/* Now define a symbol for the cpu type, if your compiler 91/* Now define a symbol for the cpu type, if your compiler
90 does not define it automatically: 92 does not define it automatically:
91 Ones defined so far include vax, m68000, ns16000, pyramid, 93 Ones defined so far include vax, m68000, ns16000, pyramid,
@@ -94,20 +96,42 @@ Boston, MA 02111-1307, USA. */
94# define hp9000s800 96# define hp9000s800
95#endif 97#endif
96 98
99/* Define CANNOT_DUMP on machines where unexec does not work.
100 Then the function dump-emacs will not be defined
101 and temacs will do (load "loadup") automatically unless told otherwise. */
102
103#undef CANNOT_DUMP
104
105#define STACK_DIRECTION 1
106
107/* Define NO_REMAP if memory segmentation makes it not work well
108 to change the boundary between the text section and data section
109 when Emacs is dumped. If you define this, the preloaded Lisp
110 code will not be sharable; but that's better than failing completely. */
111
112#define NO_REMAP
113
114#endif /* __hpux or GNU_LINUX */
115
116/* Stuff for just GNU/Linux. */
117
118#ifdef GNU_LINUX
119
120#define HAVE_ALLOCA
121
97/* Data type of load average, as read out of kmem. */ 122/* Data type of load average, as read out of kmem. */
98 123
99#define LOAD_AVE_TYPE double 124#define LOAD_AVE_TYPE long
100 125
101/* Convert that into an integer that is 100 for a load average of 1.0 */ 126/* Convert that into an integer that is 100 for a load average of 1.0 */
102 127
103#define LOAD_AVE_CVT(x) ((int) (x * 100.0)) 128#define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE)
104
105 129
106/* Define CANNOT_DUMP on machines where unexec does not work. 130#endif /* GNU_LINUX */
107 Then the function dump-emacs will not be defined 131
108 and temacs will do (load "loadup") automatically unless told otherwise. */ 132/* Stuff for just HPUX. */
109 133
110#undef CANNOT_DUMP 134#ifdef __hpux
111 135
112/* Define VIRT_ADDR_VARIES if the virtual addresses of 136/* Define VIRT_ADDR_VARIES if the virtual addresses of
113 pure and impure space as loaded can vary, and even their 137 pure and impure space as loaded can vary, and even their
@@ -135,15 +159,6 @@ Boston, MA 02111-1307, USA. */
135#define DATA_START 0x40000000 159#define DATA_START 0x40000000
136#define TEXT_START 0x00000000 160#define TEXT_START 0x00000000
137 161
138#define STACK_DIRECTION 1
139
140/* Define NO_REMAP if memory segmentation makes it not work well
141 to change the boundary between the text section and data section
142 when Emacs is dumped. If you define this, the preloaded Lisp
143 code will not be sharable; but that's better than failing completely. */
144
145#define NO_REMAP
146
147/* This machine requires completely different unexec code 162/* This machine requires completely different unexec code
148 which lives in a separate file. Specify the file name. */ 163 which lives in a separate file. Specify the file name. */
149 164
@@ -154,7 +169,15 @@ Boston, MA 02111-1307, USA. */
154 169
155/* Include the file bsdtty.h, since this machine has job control. */ 170/* Include the file bsdtty.h, since this machine has job control. */
156#define NEED_BSDTTY 171#define NEED_BSDTTY
157 172
173/* Data type of load average, as read out of kmem. */
174
175#define LOAD_AVE_TYPE double
176
177/* Convert that into an integer that is 100 for a load average of 1.0 */
178
179#define LOAD_AVE_CVT(x) ((int) (x * 100.0))
180
158/* The symbol in the kernel where the load average is found 181/* The symbol in the kernel where the load average is found
159 is named _avenrun. At this time there are two major flavors 182 is named _avenrun. At this time there are two major flavors
160 of hp-ux (there is the s800 and s300 (s200) flavors). The 183 of hp-ux (there is the s800 and s300 (s200) flavors). The