annotate src/m/sun386.h @ 0:376386a54a3c r19-14

Import from CVS: tag r19-14
author cvs
date Mon, 13 Aug 2007 08:45:50 +0200
parents
children 538048ae2ab8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 /* machine description file for Sun's 386-based RoadRunner. This file borrows heavily from
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2 "sun2.h", but since that file is heavily cpu-specific, it was easier
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3 not to include it.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5 Copyright (C) 1988 Free Software Foundation, Inc.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 This file is part of GNU Emacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 GNU Emacs is free software; you can redistribute it and/or modify
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 it under the terms of the GNU General Public License as published by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 the Free Software Foundation; either version 2, or (at your option)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 any later version.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 GNU Emacs is distributed in the hope that it will be useful,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 GNU General Public License for more details.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 You should have received a copy of the GNU General Public License
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 along with XEmacs; see the file COPYING. If not, write to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 Boston, MA 02111-1307, USA. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 /* Synched up with: FSF 19.31. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 /* The following line tells the configuration script what sort of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 operating system this machine is likely to run.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 USUAL-OPSYS="note"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 NOTE-START
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 Use s-sunos4-0.h for operating system version 4.0, and s-sunos4-1.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 for later versions. See the file share-lib/SUNBUG for how to solve
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 problems caused by bugs in the "export" version of SunOS 4.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 NOTE-END */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 /* Say this machine is a bird */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 #ifndef roadrunner
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 #define roadrunner
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 /* Actual cpu-specific defs */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 #include "intel386.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 /* Data type of load average, as read out of kmem. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 #define LOAD_AVE_TYPE long
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 /* Convert that into an integer that is 100 for a load average of 1.0 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 /* Underscores are not prepended to C symbols on this machine. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 #undef LDAV_SYMBOL
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 #define LDAV_SYMBOL "avenrun"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56 /* Must use the system's termcap. It does special things. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 #define LIBS_TERMCAP -ltermcap
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 /* Arrange to link with sun windows, if requested. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 /* For details on emacstool and sunfns, see etc/SUN-SUPPORT */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 /* These programs require Sun UNIX 4.2 Release 3.2 or greater */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 #ifdef HAVE_SUN_WINDOWS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 #define OTHER_FILES ${etcdir}emacstool
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 #define LIBS_MACHINE -lsuntool -lsunwindow -lpixrect
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 #define OBJECTS_MACHINE sunfns.o
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 #define SYMS_MACHINE syms_of_sunfns ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 #define SYSTEM_PURESIZE_EXTRA 12000
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 /* Roadrunner uses 'COFF' format */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 #define COFF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 /* XEmacs change: from Thomas.Tornblom@nexus.comm.se */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76 #ifdef USE_GCC
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 #define C_SWITCH_MACHINE -static -Dmode_t="u_short" /* avoid dynamic linking */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 #define LD_SWITCH_MACHINE -Wl,-N -static
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 #define C_SWITCH_MACHINE -Bstatic -Dmode_t="u_short"/* avoid dynamic linking */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 #define LD_SWITCH_MACHINE -N -Bstatic
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 /* Get rid of the -e __start that s-sunos4.h does. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85 #undef LD_SWITCH_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87 /* XEmacs addition? */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 #undef RUN_TIME_REMAP
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89 #undef UNEXEC
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 #define UNEXEC unexec.o
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92 #ifdef USG
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93 /* USG detects Solaris. j.w.hawtin@lut.ac.uk says Solaris 2.1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94 on the 386 needs this. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95 #define LIBS_MACHINE -lkvm
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96 #endif