aboutsummaryrefslogtreecommitdiffstats
path: root/src/s
diff options
context:
space:
mode:
authorDan Nicolaescu2010-04-21 12:32:54 -0700
committerDan Nicolaescu2010-04-21 12:32:54 -0700
commit56bae7c7b7947084b7bd71e54b322a73d9f887af (patch)
tree2ed4d086fad5d526be34d5a4270bb1baf61eb762 /src/s
parent31a01b90454f04d0b1733532bea5d9325e4762ff (diff)
downloademacs-56bae7c7b7947084b7bd71e54b322a73d9f887af.tar.gz
emacs-56bae7c7b7947084b7bd71e54b322a73d9f887af.zip
Clean up HP-UX files.
* m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS) (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT) (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ... * s/hpux10-20.h: ... to the only user, here.
Diffstat (limited to 'src/s')
-rw-r--r--src/s/hpux10-20.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/s/hpux10-20.h b/src/s/hpux10-20.h
index e670951fecc..c5dba525d64 100644
--- a/src/s/hpux10-20.h
+++ b/src/s/hpux10-20.h
@@ -168,5 +168,50 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
168/* otherwise sigunblock wont be defined */ 168/* otherwise sigunblock wont be defined */
169#define POSIX_SIGNALS 169#define POSIX_SIGNALS
170 170
171/* Define NO_REMAP if memory segmentation makes it not work well
172 to change the boundary between the text section and data section
173 when Emacs is dumped. If you define this, the preloaded Lisp
174 code will not be sharable; but that's better than failing completely. */
175
176#define NO_REMAP
177
178/* Define VIRT_ADDR_VARIES if the virtual addresses of
179 pure and impure space as loaded can vary, and even their
180 relative order cannot be relied on.
181
182 Otherwise Emacs assumes that text space precedes data space,
183 numerically. */
184
185#define VIRT_ADDR_VARIES
186
187/* the data segment on this machine always starts at address 0x40000000. */
188
189#define DATA_SEG_BITS 0x40000000
190
191#define DATA_START 0x40000000
192#define TEXT_START 0x00000000
193
194/* Data type of load average, as read out of kmem. */
195
196#define LOAD_AVE_TYPE double
197
198/* Convert that into an integer that is 100 for a load average of 1.0 */
199
200#define LOAD_AVE_CVT(x) ((int) (x * 100.0))
201
202/* The symbol in the kernel where the load average is found
203 is named _avenrun. At this time there are two major flavors
204 of hp-ux (there is the s800 and s300 (s200) flavors). The
205 differences are thusly moved to the corresponding machine description file.
206*/
207
208/* no underscore please */
209#define LDAV_SYMBOL "avenrun"
210
211/* On USG systems these have different names. */
212
213#define index strchr
214#define rindex strrchr
215
171/* arch-tag: 8d8dcbf1-ca9b-48a1-94be-b750de18a5c6 216/* arch-tag: 8d8dcbf1-ca9b-48a1-94be-b750de18a5c6
172 (do not change this comment) */ 217 (do not change this comment) */