annotate src/m/sun2.h @ 359:8e84bee8ddd0 r21-1-9

Import from CVS: tag r21-1-9
author cvs
date Mon, 13 Aug 2007 10:57:55 +0200
parents 0132846995bd
children a86b2b5e0111
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 68000's OPERATING SYSTEM version 2.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2 Note that "sun2.h" refers to the operating system version, not the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3 CPU model number. See the MACHINES file for details.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4 Copyright (C) 1985, 1986 Free Software Foundation, Inc.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6 This file is part of GNU Emacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 GNU Emacs is free software; you can redistribute it and/or modify
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 it under the terms of the GNU General Public License as published by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 the Free Software Foundation; either version 2, or (at your option)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 any later version.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 GNU Emacs is distributed in the hope that it will be useful,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 GNU General Public License for more details.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 You should have received a copy of the GNU General Public License
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 along with XEmacs; see the file COPYING. If not, write to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 Boston, MA 02111-1307, USA. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 /* Synched up with: FSF 19.31. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25 /* The following line tells the configuration script what sort of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 operating system this machine is likely to run.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 USUAL-OPSYS="note"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 NOTE-START
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 Sun 1, 2 and 3 (-machine=sun1, -machine=sun2, -machine=sun3;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 -opsystem=bsd4-2 or -opsystem=sunos4)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 Whether you should use sun1, sun2 or sun3 depends on the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 VERSION OF THE OPERATING SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 you have. There are three machine types for different versions of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 SunOS. All are derived from Berkeley 4.2, meaning that you should
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 use -opsystem=bsd4-2. Emacs 17 has run on all of them. You will
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 need to use sun3 on Sun 2's running SunOS release 3.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 For SunOS release 4 on a Sun 3, use -machine=sun3 and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 -opsystem=sunos4. See the file share-lib/SUNBUG for how to solve
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 problems caused by bugs in the "export" version of SunOS 4.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 NOTE-END */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 /* Say this machine is a 68000 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 #ifndef m68000
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 #define m68000
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 /* Sun can't write competent compilers */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 #define COMPILER_REGISTER_BUG
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 /* XINT must explicitly sign-extend */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56 #define EXPLICIT_SIGN_EXTEND
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 /* Data type of load average, as read out of kmem. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 #define LOAD_AVE_TYPE long
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 /* 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
63
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 /* Say that this is a Sun 2; must check for and maybe reinitialize
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 the "sky" board. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 #define sun2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 /* Must use the system's termcap. It does special things. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 0
diff changeset
73 #define LIBS_TERMCAP "-ltermcap"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 /* Mask for address bits within a memory segment */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 #define SEGMENT_MASK (SEGSIZ - 1)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 /* Arrange to link with sun windows, if requested. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 /* For details on emacstool and sunfns, see etc/SUN-SUPPORT */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 /* These programs require Sun UNIX 4.2 Release 3.2 or greater */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83 #ifdef HAVE_SUN_WINDOWS
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 0
diff changeset
84 #define OTHER_FILES " ${libsrc}emacstool"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 0
diff changeset
85 #define LIBS_MACHINE "-lsuntool -lsunwindow -lpixrect"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 0
diff changeset
86 #define OBJECTS_MACHINE "sunfns.o"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87 #define SYMS_MACHINE syms_of_sunfns ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 #define SYSTEM_PURESIZE_EXTRA 12000
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89 #endif