Print this page
6648 illumos build should be explicit about C standards
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/i86pc/ml/genassym.c
+++ new/usr/src/uts/i86pc/ml/genassym.c
1 1 /*
2 2 * CDDL HEADER START
3 3 *
4 4 * The contents of this file are subject to the terms of the
5 5 * Common Development and Distribution License (the "License").
6 6 * You may not use this file except in compliance with the License.
7 7 *
8 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 * or http://www.opensolaris.org/os/licensing.
10 10 * See the License for the specific language governing permissions
11 11 * and limitations under the License.
12 12 *
13 13 * When distributing Covered Code, include this CDDL HEADER in each
14 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 * If applicable, add the following below this CDDL HEADER, with the
16 16 * fields enclosed by brackets "[]" replaced with your own identifying
17 17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 18 *
19 19 * CDDL HEADER END
20 20 */
21 21 /*
22 22 * Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved.
23 23 */
24 24
25 25 #ifndef _GENASSYM
26 26 #define _GENASSYM
27 27 #endif
28 28
29 29 #define exit kern_exit
30 30
31 31 #include <sys/types.h>
32 32 #include <sys/param.h>
33 33 #include <sys/systm.h>
34 34 #include <sys/elf_notes.h>
35 35 #include <sys/thread.h>
36 36 #include <sys/rwlock.h>
37 37 #include <sys/proc.h>
38 38 #include <sys/cpuvar.h>
39 39 #include <sys/clock.h>
40 40 #include <sys/trap.h>
41 41 #include <sys/modctl.h>
42 42 #include <sys/traptrace.h>
43 43 #include <vm/seg.h>
44 44 #include <sys/avintr.h>
45 45 #include <sys/pic.h>
46 46 #include <sys/pit.h>
47 47 #include <sys/fp.h>
48 48 #include <sys/disp.h>
49 49 #include <sys/archsystm.h>
50 50 #include <sys/x86_archext.h>
51 51 #include <sys/sunddi.h>
52 52 #include <sys/mach_mmu.h>
53 53
54 54 #if defined(__xpv)
55 55 #include <sys/hypervisor.h>
56 56 #endif
57 57
58 58 #undef exit /* unhide exit, see comment above */
59 59 extern void exit(int);
60 60
61 61 /*
62 62 * Proactively discourage anyone from referring to structures or
63 63 * member offsets in this program.
64 64 */
65 65 #define struct struct...
66 66 #define OFFSET OFFSET...
67 67
68 68 int
69 69 main(int argc, char *argv[])
70 70 {
71 71 printf("#define\tT_AST 0x%x\n", T_AST);
72 72
73 73 printf("#define\tLOCK_LEVEL 0x%x\n", LOCK_LEVEL);
↓ open down ↓ |
73 lines elided |
↑ open up ↑ |
74 74 printf("#define\tCLOCK_LEVEL 0x%x\n", CLOCK_LEVEL);
75 75 printf("#define\tDISP_LEVEL 0x%x\n", DISP_LEVEL);
76 76 printf("#define\tPIL_MAX 0x%x\n", PIL_MAX);
77 77 printf("#define\tHIGH_LEVELS 0x%x\n", HIGH_LEVELS);
78 78 printf("#define\tCPU_INTR_ACTV_HIGH_LEVEL_MASK 0x%x\n",
79 79 CPU_INTR_ACTV_HIGH_LEVEL_MASK);
80 80
81 81 printf("#define\tPIC_NSEOI 0x%x\n", PIC_NSEOI);
82 82 printf("#define\tPIC_SEOI_LVL7 0x%x\n", PIC_SEOI_LVL7);
83 83
84 - printf("#define\tNANOSEC 0x%x\n", NANOSEC);
84 + printf("#define\tNANOSEC 0x%llx\n", NANOSEC);
85 85 printf("#define\tADJ_SHIFT 0x%x\n", ADJ_SHIFT);
86 86
87 87 printf("#define\tSSLEEP 0x%x\n", SSLEEP);
88 88 printf("#define\tSRUN 0x%x\n", SRUN);
89 89 printf("#define\tSONPROC 0x%x\n", SONPROC);
90 90
91 91 printf("#define\tT_INTR_THREAD 0x%x\n", T_INTR_THREAD);
92 92 printf("#define\tFREE_THREAD 0x%x\n", TS_FREE);
93 93 printf("#define\tTS_FREE 0x%x\n", TS_FREE);
94 94 printf("#define\tTS_ZOMB 0x%x\n", TS_ZOMB);
95 95 printf("#define\tTP_MSACCT 0x%x\n", TP_MSACCT);
96 96 printf("#define\tTP_WATCHPT 0x%x\n", TP_WATCHPT);
97 97 printf("#define\tONPROC_THREAD 0x%x\n", TS_ONPROC);
98 98
99 99 printf("#define\tS_READ 0x%x\n", (int)S_READ);
100 100 printf("#define\tS_WRITE 0x%x\n", (int)S_WRITE);
101 101 printf("#define\tS_EXEC 0x%x\n", (int)S_EXEC);
102 102 printf("#define\tS_OTHER 0x%x\n", (int)S_OTHER);
103 103
104 104 printf("#define\tNORMALRETURN 0x%x\n", (int)NORMALRETURN);
105 105 printf("#define\tLWP_USER 0x%x\n", LWP_USER);
106 106 printf("#define\tLWP_SYS 0x%x\n", LWP_SYS);
107 107 printf("#define\tLMS_USER 0x%x\n", LMS_USER);
108 108 printf("#define\tLMS_SYSTEM 0x%x\n", LMS_SYSTEM);
109 109
110 110 printf("#define\tSSE_MXCSR_EFLAGS 0x%x\n", SSE_MXCSR_EFLAGS);
111 111
112 112 printf("#define\tFP_487 0x%x\n", FP_487);
113 113 printf("#define\tFP_486 0x%x\n", FP_486);
114 114 printf("#define\tFPU_CW_INIT 0x%x\n", FPU_CW_INIT);
115 115 printf("#define\tFPU_EN 0x%x\n", FPU_EN);
116 116 printf("#define\tFPU_VALID 0x%x\n", FPU_VALID);
117 117
118 118 printf("#define\tFP_NO 0x%x\n", FP_NO);
119 119 printf("#define\tFP_SW 0x%x\n", FP_SW);
120 120 printf("#define\tFP_HW 0x%x\n", FP_HW);
121 121 printf("#define\tFP_287 0x%x\n", FP_287);
122 122 printf("#define\tFP_387 0x%x\n", FP_387);
123 123 printf("#define\t__FP_SSE 0x%x\n", __FP_SSE);
124 124
125 125 printf("#define\tFP_FNSAVE 0x%x\n", FP_FNSAVE);
126 126 printf("#define\tFP_FXSAVE 0x%x\n", FP_FXSAVE);
127 127 printf("#define\tFP_XSAVE 0x%x\n", FP_XSAVE);
128 128
129 129 printf("#define\tAV_INT_SPURIOUS 0x%x\n", AV_INT_SPURIOUS);
130 130
131 131 printf("#define\tCPU_READY 0x%x\n", CPU_READY);
132 132 printf("#define\tCPU_QUIESCED 0x%x\n", CPU_QUIESCED);
133 133
134 134 printf("#define\tMCMD_PORT 0x%x\n", MCMD_PORT);
135 135 printf("#define\tSCMD_PORT 0x%x\n", SCMD_PORT);
136 136 printf("#define\tMIMR_PORT 0x%x\n", MIMR_PORT);
137 137 printf("#define\tSIMR_PORT 0x%x\n", SIMR_PORT);
138 138
139 139 printf("#define\tDMP_NOSYNC 0x%x\n", DMP_NOSYNC);
140 140
141 141 printf("#define\tRW_WRITER\t0x%x\n", RW_WRITER);
142 142 printf("#define\tRW_READER\t0x%x\n", RW_READER);
↓ open down ↓ |
48 lines elided |
↑ open up ↑ |
143 143
144 144 printf("#define\tNSYSCALL 0x%x\n", NSYSCALL);
145 145
146 146 printf("#define\tSE_32RVAL1 0x%x\n", SE_32RVAL1);
147 147 printf("#define\tSE_32RVAL2 0x%x\n", SE_32RVAL2);
148 148 printf("#define\tSE_64RVAL 0x%x\n", SE_64RVAL);
149 149
150 150 printf("#define\tMAXSYSARGS 0x%x\n", MAXSYSARGS);
151 151
152 152 /* Hack value just to allow clock to be kicked */
153 - printf("#define\tNSEC_PER_CLOCK_TICK 0x%x\n", NANOSEC / 100);
153 + printf("#define\tNSEC_PER_CLOCK_TICK 0x%llx\n", NANOSEC / 100);
154 154
155 - printf("#define\tNSEC_PER_COUNTER_TICK 0x%x\n", NANOSEC / PIT_HZ);
155 + printf("#define\tNSEC_PER_COUNTER_TICK 0x%llx\n", NANOSEC / PIT_HZ);
156 156
157 157 printf("#define\tPITCTR0_PORT 0x%x\n", PITCTR0_PORT);
158 158 printf("#define\tPITCTL_PORT 0x%x\n", PITCTL_PORT);
159 159 printf("#define\tPIT_COUNTDOWN 0x%x\n",
160 160 PIT_C0 | PIT_LOADMODE | PIT_NDIVMODE);
161 161
162 162 printf("#define\tNBPW 0x%x\n", NBPW);
163 163
164 164 printf("#define\tDDI_ACCATTR_IO_SPACE 0x%x\n", DDI_ACCATTR_IO_SPACE);
165 165 printf("#define\tDDI_ACCATTR_DIRECT 0x%x\n", DDI_ACCATTR_DIRECT);
166 166 printf("#define\tDDI_ACCATTR_CPU_VADDR 0x%x\n", DDI_ACCATTR_CPU_VADDR);
167 167 printf("#define\tDDI_DEV_AUTOINCR 0x%x\n", DDI_DEV_AUTOINCR);
168 168
169 169 printf("#define\tMMU_STD_PAGESIZE 0x%x\n", (uint_t)MMU_STD_PAGESIZE);
170 170 printf("#define\tMMU_STD_PAGEMASK 0x%x\n", (uint_t)MMU_STD_PAGEMASK);
171 171 printf("#define\tFOUR_MEG 0x%x\n", (uint_t)FOUR_MEG);
172 172
173 173 printf("#define\tTRAPTR_NENT 0x%x\n", TRAPTR_NENT);
174 174
175 175 printf("#define\tCPU_DTRACE_NOFAULT 0x%x\n", CPU_DTRACE_NOFAULT);
176 176 printf("#define\tCPU_DTRACE_BADADDR 0x%x\n", CPU_DTRACE_BADADDR);
177 177 printf("#define\tCPU_DTRACE_ILLOP 0x%x\n", CPU_DTRACE_ILLOP);
178 178
179 179 printf("#define\tMODS_NOUNLOAD 0x%x\n", MODS_NOUNLOAD);
180 180 printf("#define\tMODS_WEAK 0x%x\n", MODS_WEAK);
181 181 printf("#define\tMODS_INSTALLED 0x%x\n", MODS_INSTALLED);
182 182
183 183 printf("#define\tKPREEMPT_SYNC 0x%x\n", KPREEMPT_SYNC);
184 184
185 185 #if defined(__xpv)
186 186 printf("#define\tSHUTDOWN_reboot 0x%x\n", SHUTDOWN_reboot);
187 187 printf("#define\tSCHEDOP_block 0x%x\n", SCHEDOP_block);
188 188 printf("#define\tVGCF_IN_KERNEL 0x%x\n", VGCF_IN_KERNEL);
189 189 #endif
190 190 return (0);
191 191 }
↓ open down ↓ |
26 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX