aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDan Nicolaescu2010-04-06 23:11:45 -0700
committerDan Nicolaescu2010-04-06 23:11:45 -0700
commit5e5a3b92e4fb79ad986d37c2fe8e58b9ab0518f6 (patch)
treec56347e6b5cb173aca978a07f0dfb2fd2c0eabbd /src
parent863bf4810aa40ec9cf7b61b4fc8781ef956b5165 (diff)
downloademacs-5e5a3b92e4fb79ad986d37c2fe8e58b9ab0518f6.tar.gz
emacs-5e5a3b92e4fb79ad986d37c2fe8e58b9ab0518f6.zip
Simplify code for HP machines.
* m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define for GNU_LINUX, not needed. (UNEXEC, NEED_BSDTTY): Move definitions... * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/m/hp800.h32
-rw-r--r--src/s/hpux10-20.h5
3 files changed, 13 insertions, 30 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 37d76ab73e3..46ad20ac94d 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,11 @@
12010-04-07 Dan Nicolaescu <dann@ics.uci.edu> 12010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
2 2
3 Simplify code for HP machines.
4 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
5 for GNU_LINUX, not needed.
6 (UNEXEC, NEED_BSDTTY): Move definitions...
7 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
8
3 * m/iris4d.h (UNEXEC): Move definition ... 9 * m/iris4d.h (UNEXEC): Move definition ...
4 * s/irix6-5.h (UNEXEC): ... here. 10 * s/irix6-5.h (UNEXEC): ... here.
5 11
diff --git a/src/m/hp800.h b/src/m/hp800.h
index bf684a871a9..d95da6643ab 100644
--- a/src/m/hp800.h
+++ b/src/m/hp800.h
@@ -41,9 +41,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
41#define EXPLICIT_SIGN_EXTEND 41#define EXPLICIT_SIGN_EXTEND
42 42
43 43
44/* Common definitions for HPUX and GNU/Linux. */ 44/* Stuff for just HPUX. */
45 45
46#if defined (__hpux) || defined (GNU_LINUX) 46#if defined (__hpux)
47 47
48/* Define NO_REMAP if memory segmentation makes it not work well 48/* Define NO_REMAP if memory segmentation makes it not work well
49 to change the boundary between the text section and data section 49 to change the boundary between the text section and data section
@@ -52,26 +52,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
52 52
53#define NO_REMAP 53#define NO_REMAP
54 54
55#endif /* __hpux or GNU_LINUX */
56
57/* Stuff for just GNU/Linux. */
58
59#ifdef GNU_LINUX
60
61/* Data type of load average, as read out of kmem. */
62
63#define LOAD_AVE_TYPE long
64
65/* Convert that into an integer that is 100 for a load average of 1.0 */
66
67#define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE)
68
69#endif /* GNU_LINUX */
70
71/* Stuff for just HPUX. */
72
73#ifdef __hpux
74
75/* Define VIRT_ADDR_VARIES if the virtual addresses of 55/* Define VIRT_ADDR_VARIES if the virtual addresses of
76 pure and impure space as loaded can vary, and even their 56 pure and impure space as loaded can vary, and even their
77 relative order cannot be relied on. 57 relative order cannot be relied on.
@@ -88,14 +68,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
88#define DATA_START 0x40000000 68#define DATA_START 0x40000000
89#define TEXT_START 0x00000000 69#define TEXT_START 0x00000000
90 70
91/* This machine requires completely different unexec code
92 which lives in a separate file. Specify the file name. */
93
94#define UNEXEC unexhp9k800.o
95
96/* Include the file bsdtty.h, since this machine has job control. */
97#define NEED_BSDTTY
98
99/* Data type of load average, as read out of kmem. */ 71/* Data type of load average, as read out of kmem. */
100 72
101#define LOAD_AVE_TYPE double 73#define LOAD_AVE_TYPE double
diff --git a/src/s/hpux10-20.h b/src/s/hpux10-20.h
index cf670cd51a0..e56b25ecaee 100644
--- a/src/s/hpux10-20.h
+++ b/src/s/hpux10-20.h
@@ -89,6 +89,11 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
89 89
90#define HAVE_PERROR /* Delete this line for version 6. */ 90#define HAVE_PERROR /* Delete this line for version 6. */
91 91
92#define UNEXEC unexhp9k800.o
93
94/* Include the file bsdtty.h, since this machine has job control. */
95#define NEED_BSDTTY
96
92/* This is how to get the device name of the tty end of a pty. */ 97/* This is how to get the device name of the tty end of a pty. */
93#define PTY_TTY_NAME_SPRINTF \ 98#define PTY_TTY_NAME_SPRINTF \
94 sprintf (pty_name, "/dev/pty/tty%c%x", c, i); 99 sprintf (pty_name, "/dev/pty/tty%c%x", c, i);