comparison src/m/powerpc.h @ 442:abe6d1db359e r21-2-36

Import from CVS: tag r21-2-36
author cvs
date Mon, 13 Aug 2007 11:35:02 +0200
parents 3ecd8885ac67
children 4542b72c005e
comparison
equal deleted inserted replaced
441:72a7cfa4a488 442:abe6d1db359e
41 /* This level of optimization is reported to work. */ 41 /* This level of optimization is reported to work. */
42 # define C_OPTIMIZE_SWITCH "-O2" 42 # define C_OPTIMIZE_SWITCH "-O2"
43 # endif 43 # endif
44 #endif 44 #endif
45 45
46 /* XINT must explicitly sign-extend */
47
48 #define EXPLICIT_SIGN_EXTEND
49
50 #ifndef __linux__ 46 #ifndef __linux__
51 /* Data type of load average, as read out of kmem. */ 47 /* Data type of load average, as read out of kmem. */
52 48
53 #define LOAD_AVE_TYPE long 49 #define LOAD_AVE_TYPE long
54 50
55 /* Convert that into an integer that is 100 for a load average of 1.0 */ 51 /* Convert that into an integer that is 100 for a load average of 1.0 */
56 52
57 #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE) 53 #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE)
58 #else /* mklinux */ 54 #else /* mklinux */
59 55
60 /* Define NO_ARG_ARRAY if you cannot take the address of the first of a
61 * group of arguments and treat it as an array of the arguments. */
62
63 #define NO_ARG_ARRAY
64
65 /* Define addresses, macros, change some setup for dump */ 56 /* Define addresses, macros, change some setup for dump */
66 57
67 #define NO_REMAP 58 #define NO_REMAP
68 59
69 #if 0 60 #ifdef CANNOT_DUMP
70 #define TEXT_START 0x00001000
71 #define TEXT_END 0
72 #define DATA_START 0x01000000
73 #define DATA_END 0
74 61
75 /* The data segment in this machine always starts at address 0x10000000.
76 An address of data cannot be stored correctly in a Lisp object;
77 we always lose the high bits. We must tell XPNTR to add them back. */
78
79 #define DATA_SEG_BITS 0x10000000
80 #endif
81
82 /* Use type int rather than a union, to represent Lisp_Object */
83
84 /* #define NO_UNION_TYPE */
85
86 #ifdef CANNOT_DUMP
87 /* Define shared memory segment symbols */
88
89 #define PURE_SEG_BITS 0x30000000
90
91 /* Use shared memory. */
92 /* This is turned off because it does not always work. See etc/AIX.DUMP. */
93 /* #define HAVE_SHM */
94 #define SHMKEY 5305035 /* used for shared memory code segments */
95 #endif /* CANNOT_DUMP */ 62 #endif /* CANNOT_DUMP */
96 63
97 #define N_BADMAG(x) BADMAG(x) 64 #define N_BADMAG(x) BADMAG(x)
98 #define N_TXTOFF(x) A_TEXTPOS(x) 65 #define N_TXTOFF(x) A_TEXTPOS(x)
99 #define N_SYMOFF(x) A_SYMPOS(x) 66 #define N_SYMOFF(x) A_SYMPOS(x)