]>
Commit | Line | Data |
---|---|---|
5ba3f43e A |
1 | /* |
2 | * Copyright (c) 2007 Apple Inc. All rights reserved. | |
3 | * | |
4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ | |
5 | * | |
6 | * This file contains Original Code and/or Modifications of Original Code | |
7 | * as defined in and that are subject to the Apple Public Source License | |
8 | * Version 2.0 (the 'License'). You may not use this file except in | |
9 | * compliance with the License. The rights granted to you under the License | |
10 | * may not be used to create, or enable the creation or redistribution of, | |
11 | * unlawful or unlicensed copies of an Apple operating system, or to | |
12 | * circumvent, violate, or enable the circumvention or violation of, any | |
13 | * terms of an Apple operating system software license agreement. | |
14 | * | |
15 | * Please obtain a copy of the License at | |
16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. | |
17 | * | |
18 | * The Original Code and all software distributed under the License are | |
19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER | |
20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, | |
21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, | |
22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. | |
23 | * Please see the License for the specific language governing rights and | |
24 | * limitations under the License. | |
25 | * | |
26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ | |
27 | */ | |
28 | /* | |
29 | * @OSF_COPYRIGHT@ | |
30 | */ | |
0a7de745 | 31 | /* |
5ba3f43e A |
32 | * Mach Operating System |
33 | * Copyright (c) 1991,1990 Carnegie Mellon University | |
34 | * All Rights Reserved. | |
0a7de745 | 35 | * |
5ba3f43e A |
36 | * Permission to use, copy, modify and distribute this software and its |
37 | * documentation is hereby granted, provided that both the copyright | |
38 | * notice and this permission notice appear in all copies of the | |
39 | * software, derivative works or modified versions, and any portions | |
40 | * thereof, and that both notices appear in supporting documentation. | |
0a7de745 | 41 | * |
5ba3f43e A |
42 | * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" |
43 | * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR | |
44 | * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. | |
0a7de745 | 45 | * |
5ba3f43e | 46 | * Carnegie Mellon requests users of this software to return to |
0a7de745 | 47 | * |
5ba3f43e A |
48 | * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU |
49 | * School of Computer Science | |
50 | * Carnegie Mellon University | |
51 | * Pittsburgh PA 15213-3890 | |
0a7de745 | 52 | * |
5ba3f43e A |
53 | * any improvements or extensions that they make and grant Carnegie Mellon |
54 | * the rights to redistribute these changes. | |
55 | */ | |
56 | ||
57 | #include <stddef.h> | |
58 | ||
59 | #include <mach_ldebug.h> | |
60 | ||
61 | /* | |
62 | * Pass field offsets to assembly code. | |
63 | */ | |
64 | #include <kern/ast.h> | |
65 | #include <kern/thread.h> | |
66 | #include <kern/task.h> | |
0a7de745 | 67 | #include <kern/lock_stat.h> |
5ba3f43e A |
68 | #include <kern/locks.h> |
69 | #include <ipc/ipc_space.h> | |
70 | #include <ipc/ipc_port.h> | |
71 | #include <ipc/ipc_pset.h> | |
72 | #include <kern/host.h> | |
73 | #include <kern/misc_protos.h> | |
74 | #include <kern/syscall_sw.h> | |
75 | #include <arm/thread.h> | |
76 | #include <mach/arm/vm_param.h> | |
77 | #include <arm/pmap.h> | |
78 | #include <arm/trap.h> | |
79 | #include <arm/cpu_data_internal.h> | |
80 | #include <arm/cpu_capabilities.h> | |
81 | #include <arm/cpu_internal.h> | |
82 | #include <arm/rtclock.h> | |
83 | #include <machine/commpage.h> | |
84 | #include <vm/vm_map.h> | |
85 | #include <pexpert/arm/boot.h> | |
86 | #include <arm/proc_reg.h> | |
87 | #include <prng/random.h> | |
88 | ||
5ba3f43e A |
89 | /* |
90 | * genassym.c is used to produce an | |
91 | * assembly file which, intermingled with unuseful assembly code, | |
92 | * has all the necessary definitions emitted. This assembly file is | |
93 | * then postprocessed with sed to extract only these definitions | |
94 | * and thus the final assyms.s is created. | |
95 | * | |
96 | * This convoluted means is necessary since the structure alignment | |
97 | * and packing may be different between the host machine and the | |
98 | * target so we are forced into using the cross compiler to generate | |
99 | * the values, but we cannot run anything on the target machine. | |
100 | */ | |
101 | ||
0a7de745 | 102 | #define DECLARE(SYM, VAL) \ |
5ba3f43e A |
103 | __asm("DEFINITION__define__" SYM ":\t .ascii \"%0\"" : : "n" ((u_int)(VAL))) |
104 | ||
105 | ||
0a7de745 A |
106 | int main( |
107 | int argc, | |
108 | char ** argv); | |
5ba3f43e A |
109 | |
110 | int | |
111 | main( | |
0a7de745 A |
112 | int argc, |
113 | char **argv) | |
5ba3f43e | 114 | { |
0a7de745 A |
115 | DECLARE("T_PREFETCH_ABT", T_PREFETCH_ABT); |
116 | DECLARE("T_DATA_ABT", T_DATA_ABT); | |
5ba3f43e | 117 | |
0a7de745 A |
118 | DECLARE("AST_URGENT", AST_URGENT); |
119 | DECLARE("AST_PREEMPTION", AST_PREEMPTION); | |
5ba3f43e | 120 | |
0a7de745 A |
121 | DECLARE("TH_RECOVER", offsetof(struct thread, recover)); |
122 | DECLARE("TH_CONTINUATION", offsetof(struct thread, continuation)); | |
123 | DECLARE("TH_KERNEL_STACK", offsetof(struct thread, kernel_stack)); | |
124 | DECLARE("TH_KSTACKPTR", offsetof(struct thread, machine.kstackptr)); | |
125 | DECLARE("TH_UTHREAD", offsetof(struct thread, uthread)); | |
5ba3f43e A |
126 | |
127 | DECLARE("TASK_MACH_EXC_PORT", | |
0a7de745 | 128 | offsetof(struct task, exc_actions[EXC_MACH_SYSCALL].port)); |
5ba3f43e A |
129 | |
130 | /* These fields are being added on demand */ | |
0a7de745 A |
131 | DECLARE("ACT_TASK", offsetof(struct thread, task)); |
132 | DECLARE("ACT_PCBDATA", offsetof(struct thread, machine.PcbData)); | |
5ba3f43e | 133 | #if __ARM_VFP__ |
94ff46dc | 134 | DECLARE("ACT_UVFP", offsetof(struct thread, machine.PcbData.VFPdata)); |
5ba3f43e | 135 | #endif |
0a7de745 | 136 | DECLARE("TH_CTH_SELF", offsetof(struct thread, machine.cthread_self)); |
0a7de745 A |
137 | DECLARE("ACT_PCBDATA_PC", offsetof(struct thread, machine.PcbData.pc)); |
138 | DECLARE("ACT_PCBDATA_R0", offsetof(struct thread, machine.PcbData.r[0])); | |
139 | DECLARE("ACT_PREEMPT_CNT", offsetof(struct thread, machine.preemption_count)); | |
140 | DECLARE("ACT_CPUDATAP", offsetof(struct thread, machine.CpuDatap)); | |
141 | DECLARE("ACT_MAP", offsetof(struct thread, map)); | |
5ba3f43e A |
142 | #if __ARM_USER_PROTECT__ |
143 | DECLARE("ACT_UPTW_TTC", offsetof(struct thread, machine.uptw_ttc)); | |
144 | DECLARE("ACT_UPTW_TTB", offsetof(struct thread, machine.uptw_ttb)); | |
145 | DECLARE("ACT_KPTW_TTB", offsetof(struct thread, machine.kptw_ttb)); | |
146 | DECLARE("ACT_ASID", offsetof(struct thread, machine.asid)); | |
147 | #endif | |
0a7de745 A |
148 | DECLARE("ACT_DEBUGDATA", offsetof(struct thread, machine.DebugData)); |
149 | DECLARE("TH_IOTIER_OVERRIDE", offsetof(struct thread, iotier_override)); | |
150 | DECLARE("TH_RWLOCK_CNT", offsetof(struct thread, rwlock_count)); | |
151 | DECLARE("TH_SCHED_FLAGS", offsetof(struct thread, sched_flags)); | |
152 | DECLARE("TH_SFLAG_RW_PROMOTED", TH_SFLAG_RW_PROMOTED); | |
5ba3f43e A |
153 | |
154 | DECLARE("TH_MACH_SYSCALLS", offsetof(struct thread, syscalls_mach)); | |
155 | DECLARE("TH_UNIX_SYSCALLS", offsetof(struct thread, syscalls_unix)); | |
156 | DECLARE("TASK_BSD_INFO", offsetof(struct task, bsd_info)); | |
157 | ||
158 | DECLARE("MACH_TRAP_TABLE_COUNT", MACH_TRAP_TABLE_COUNT); | |
159 | DECLARE("MACH_TRAP_TABLE_ENTRY_SIZE", sizeof(mach_trap_t)); | |
160 | ||
0a7de745 | 161 | DECLARE("MAP_PMAP", offsetof(struct _vm_map, pmap)); |
5ba3f43e | 162 | |
0a7de745 | 163 | DECLARE("SS_SIZE", sizeof(struct arm_saved_state)); |
5ba3f43e A |
164 | DECLARE("SS_LR", offsetof(struct arm_saved_state, lr)); |
165 | DECLARE("SS_CPSR", offsetof(struct arm_saved_state, cpsr)); | |
166 | DECLARE("SS_PC", offsetof(struct arm_saved_state, pc)); | |
167 | DECLARE("SS_R0", offsetof(struct arm_saved_state, r[0])); | |
168 | DECLARE("SS_R4", offsetof(struct arm_saved_state, r[4])); | |
169 | DECLARE("SS_R9", offsetof(struct arm_saved_state, r[9])); | |
170 | DECLARE("SS_R12", offsetof(struct arm_saved_state, r[12])); | |
171 | DECLARE("SS_SP", offsetof(struct arm_saved_state, sp)); | |
172 | DECLARE("SS_STATUS", offsetof(struct arm_saved_state, fsr)); | |
173 | DECLARE("SS_VADDR", offsetof(struct arm_saved_state, far)); | |
174 | DECLARE("SS_EXC", offsetof(struct arm_saved_state, exception)); | |
175 | ||
176 | #if __ARM_VFP__ | |
94ff46dc | 177 | DECLARE("SS_KVFP", offsetof(struct arm_saved_state, VFPdata)); |
5ba3f43e A |
178 | DECLARE("VSS_SIZE", sizeof(struct arm_vfpsaved_state)); |
179 | DECLARE("VSS_FPSCR", offsetof(struct arm_vfpsaved_state, fpscr)); | |
180 | DECLARE("VSS_FPEXC", offsetof(struct arm_vfpsaved_state, fpexc)); | |
181 | ||
182 | DECLARE("EXC_CTX_SIZE", sizeof(struct arm_saved_state) + | |
0a7de745 A |
183 | sizeof(struct arm_vfpsaved_state) + |
184 | VFPSAVE_ALIGN); | |
5ba3f43e A |
185 | DECLARE("VSS_ALIGN", VFPSAVE_ALIGN); |
186 | #else | |
187 | DECLARE("EXC_CTX_SIZE", sizeof(struct arm_saved_state)); | |
188 | #endif | |
189 | ||
190 | ||
191 | DECLARE("PGBYTES", ARM_PGBYTES); | |
192 | DECLARE("PGSHIFT", ARM_PGSHIFT); | |
193 | DECLARE("PGMASK", ARM_PGMASK); | |
194 | ||
0a7de745 A |
195 | DECLARE("VM_MIN_ADDRESS", VM_MIN_ADDRESS); |
196 | DECLARE("VM_MAX_ADDRESS", VM_MAX_ADDRESS); | |
197 | DECLARE("KERNELBASE", VM_MIN_KERNEL_ADDRESS); | |
198 | DECLARE("KERNEL_STACK_SIZE", KERNEL_STACK_SIZE); | |
5ba3f43e | 199 | |
0a7de745 | 200 | DECLARE("KERN_INVALID_ADDRESS", KERN_INVALID_ADDRESS); |
5ba3f43e | 201 | |
0a7de745 | 202 | DECLARE("MAX_CPUS", MAX_CPUS); |
5ba3f43e A |
203 | |
204 | DECLARE("cdeSize", | |
0a7de745 | 205 | sizeof(struct cpu_data_entry)); |
5ba3f43e A |
206 | |
207 | DECLARE("cdSize", | |
0a7de745 A |
208 | sizeof(struct cpu_data)); |
209 | ||
210 | DECLARE("CPU_ACTIVE_THREAD", | |
211 | offsetof(cpu_data_t, cpu_active_thread)); | |
212 | DECLARE("CPU_ACTIVE_STACK", | |
213 | offsetof(cpu_data_t, cpu_active_stack)); | |
214 | DECLARE("CPU_ISTACKPTR", | |
215 | offsetof(cpu_data_t, istackptr)); | |
216 | DECLARE("CPU_INTSTACK_TOP", | |
217 | offsetof(cpu_data_t, intstack_top)); | |
218 | DECLARE("CPU_FIQSTACKPTR", | |
219 | offsetof(cpu_data_t, fiqstackptr)); | |
220 | DECLARE("CPU_FIQSTACK_TOP", | |
221 | offsetof(cpu_data_t, fiqstack_top)); | |
222 | DECLARE("CPU_NUMBER_GS", | |
223 | offsetof(cpu_data_t, cpu_number)); | |
224 | DECLARE("CPU_IDENT", | |
225 | offsetof(cpu_data_t, cpu_ident)); | |
226 | DECLARE("CPU_RUNNING", | |
227 | offsetof(cpu_data_t, cpu_running)); | |
228 | DECLARE("CPU_MCOUNT_OFF", | |
229 | offsetof(cpu_data_t, cpu_mcount_off)); | |
5ba3f43e | 230 | DECLARE("CPU_PENDING_AST", |
0a7de745 | 231 | offsetof(cpu_data_t, cpu_pending_ast)); |
5ba3f43e | 232 | DECLARE("CPU_PROCESSOR", |
0a7de745 | 233 | offsetof(cpu_data_t, cpu_processor)); |
5ba3f43e | 234 | DECLARE("CPU_CACHE_DISPATCH", |
0a7de745 A |
235 | offsetof(cpu_data_t, cpu_cache_dispatch)); |
236 | DECLARE("CPU_BASE_TIMEBASE_LOW", | |
237 | offsetof(cpu_data_t, cpu_base_timebase_low)); | |
238 | DECLARE("CPU_BASE_TIMEBASE_HIGH", | |
239 | offsetof(cpu_data_t, cpu_base_timebase_high)); | |
240 | DECLARE("CPU_TIMEBASE_LOW", | |
241 | offsetof(cpu_data_t, cpu_timebase_low)); | |
242 | DECLARE("CPU_TIMEBASE_HIGH", | |
243 | offsetof(cpu_data_t, cpu_timebase_high)); | |
5ba3f43e | 244 | DECLARE("CPU_DECREMENTER", |
0a7de745 | 245 | offsetof(cpu_data_t, cpu_decrementer)); |
5ba3f43e | 246 | DECLARE("CPU_GET_DECREMENTER_FUNC", |
0a7de745 | 247 | offsetof(cpu_data_t, cpu_get_decrementer_func)); |
5ba3f43e | 248 | DECLARE("CPU_SET_DECREMENTER_FUNC", |
0a7de745 | 249 | offsetof(cpu_data_t, cpu_set_decrementer_func)); |
5ba3f43e | 250 | DECLARE("CPU_GET_FIQ_HANDLER", |
0a7de745 | 251 | offsetof(cpu_data_t, cpu_get_fiq_handler)); |
5ba3f43e | 252 | DECLARE("CPU_TBD_HARDWARE_ADDR", |
0a7de745 | 253 | offsetof(cpu_data_t, cpu_tbd_hardware_addr)); |
5ba3f43e | 254 | DECLARE("CPU_TBD_HARDWARE_VAL", |
0a7de745 | 255 | offsetof(cpu_data_t, cpu_tbd_hardware_val)); |
5ba3f43e | 256 | DECLARE("CPU_INT_STATE", |
0a7de745 | 257 | offsetof(cpu_data_t, cpu_int_state)); |
5ba3f43e | 258 | DECLARE("INTERRUPT_HANDLER", |
0a7de745 | 259 | offsetof(cpu_data_t, interrupt_handler)); |
5ba3f43e | 260 | DECLARE("INTERRUPT_TARGET", |
0a7de745 | 261 | offsetof(cpu_data_t, interrupt_target)); |
5ba3f43e | 262 | DECLARE("INTERRUPT_REFCON", |
0a7de745 | 263 | offsetof(cpu_data_t, interrupt_refCon)); |
5ba3f43e | 264 | DECLARE("INTERRUPT_NUB", |
0a7de745 | 265 | offsetof(cpu_data_t, interrupt_nub)); |
5ba3f43e | 266 | DECLARE("INTERRUPT_SOURCE", |
0a7de745 | 267 | offsetof(cpu_data_t, interrupt_source)); |
5ba3f43e | 268 | DECLARE("CPU_USER_DEBUG", |
0a7de745 | 269 | offsetof(cpu_data_t, cpu_user_debug)); |
5ba3f43e | 270 | DECLARE("CPU_STAT_IRQ", |
0a7de745 | 271 | offsetof(cpu_data_t, cpu_stat.irq_ex_cnt)); |
5ba3f43e | 272 | DECLARE("CPU_STAT_IRQ_WAKE", |
0a7de745 | 273 | offsetof(cpu_data_t, cpu_stat.irq_ex_cnt_wake)); |
5ba3f43e | 274 | DECLARE("CPU_RESET_HANDLER", |
0a7de745 | 275 | offsetof(cpu_data_t, cpu_reset_handler)); |
5ba3f43e | 276 | DECLARE("CPU_RESET_ASSIST", |
0a7de745 | 277 | offsetof(cpu_data_t, cpu_reset_assist)); |
5ba3f43e | 278 | DECLARE("RTCLOCK_DATAP", |
0a7de745 A |
279 | offsetof(cpu_data_t, rtclock_datap)); |
280 | #ifdef __arm__ | |
5ba3f43e | 281 | DECLARE("CPU_EXC_VECTORS", |
0a7de745 | 282 | offsetof(cpu_data_t, cpu_exc_vectors)); |
5ba3f43e A |
283 | #endif |
284 | ||
285 | DECLARE("RTCLOCKDataSize", | |
0a7de745 | 286 | sizeof(rtclock_data_t)); |
5ba3f43e | 287 | DECLARE("RTCLOCK_ADJ_ABSTIME_LOW", |
0a7de745 | 288 | offsetof(rtclock_data_t, rtc_adj.abstime_val.low)); |
5ba3f43e | 289 | DECLARE("RTCLOCK_ADJ_ABSTIME_HIGH", |
0a7de745 | 290 | offsetof(rtclock_data_t, rtc_adj.abstime_val.high)); |
5ba3f43e | 291 | DECLARE("RTCLOCK_BASE_ABSTIME_LOW", |
0a7de745 | 292 | offsetof(rtclock_data_t, rtc_base.abstime_val.low)); |
5ba3f43e | 293 | DECLARE("RTCLOCK_BASE_ABSTIME_HIGH", |
0a7de745 | 294 | offsetof(rtclock_data_t, rtc_base.abstime_val.high)); |
5ba3f43e | 295 | DECLARE("RTCLOCK_TB_FUNC", |
0a7de745 | 296 | offsetof(rtclock_data_t, rtc_timebase_func)); |
5ba3f43e | 297 | DECLARE("RTCLOCK_TB_ADDR", |
0a7de745 | 298 | offsetof(rtclock_data_t, rtc_timebase_addr)); |
5ba3f43e | 299 | DECLARE("RTCLOCK_TB_VAL", |
0a7de745 | 300 | offsetof(rtclock_data_t, rtc_timebase_val)); |
5ba3f43e | 301 | |
0a7de745 | 302 | DECLARE("SIGPdec", SIGPdec); |
5ba3f43e A |
303 | |
304 | DECLARE("rhdSize", | |
0a7de745 | 305 | sizeof(struct reset_handler_data)); |
5ba3f43e | 306 | |
0a7de745 A |
307 | DECLARE("CPU_DATA_ENTRIES", offsetof(struct reset_handler_data, cpu_data_entries)); |
308 | DECLARE("BOOT_ARGS", offsetof(struct reset_handler_data, boot_args)); | |
309 | DECLARE("ASSIST_RESET_HANDLER", offsetof(struct reset_handler_data, assist_reset_handler)); | |
5ba3f43e | 310 | |
0a7de745 | 311 | DECLARE("CPU_DATA_PADDR", offsetof(struct cpu_data_entry, cpu_data_paddr)); |
5ba3f43e | 312 | |
0a7de745 A |
313 | DECLARE("INTSTACK_SIZE", INTSTACK_SIZE); |
314 | DECLARE("FIQSTACK_SIZE", FIQSTACK_SIZE); | |
d9a64523 | 315 | |
0a7de745 | 316 | DECLARE("PAGE_MAX_SIZE", PAGE_MAX_SIZE); |
5ba3f43e A |
317 | |
318 | /* values from kern/timer.h */ | |
319 | DECLARE("TIMER_LOW", | |
0a7de745 | 320 | offsetof(struct timer, low_bits)); |
5ba3f43e | 321 | DECLARE("TIMER_HIGH", |
0a7de745 | 322 | offsetof(struct timer, high_bits)); |
5ba3f43e | 323 | DECLARE("TIMER_HIGHCHK", |
0a7de745 | 324 | offsetof(struct timer, high_bits_check)); |
5ba3f43e | 325 | DECLARE("TIMER_TSTAMP", |
0a7de745 | 326 | offsetof(struct timer, tstamp)); |
5ba3f43e | 327 | DECLARE("THREAD_TIMER", |
0a7de745 | 328 | offsetof(struct processor, processor_data.thread_timer)); |
5ba3f43e | 329 | DECLARE("KERNEL_TIMER", |
0a7de745 | 330 | offsetof(struct processor, processor_data.kernel_timer)); |
5ba3f43e | 331 | DECLARE("SYSTEM_STATE", |
0a7de745 | 332 | offsetof(struct processor, processor_data.system_state)); |
5ba3f43e | 333 | DECLARE("USER_STATE", |
0a7de745 | 334 | offsetof(struct processor, processor_data.user_state)); |
5ba3f43e | 335 | DECLARE("CURRENT_STATE", |
0a7de745 | 336 | offsetof(struct processor, processor_data.current_state)); |
5ba3f43e A |
337 | |
338 | DECLARE("SYSTEM_TIMER", | |
0a7de745 | 339 | offsetof(struct thread, system_timer)); |
5ba3f43e | 340 | DECLARE("USER_TIMER", |
0a7de745 | 341 | offsetof(struct thread, user_timer)); |
5ba3f43e A |
342 | |
343 | #if !CONFIG_SKIP_PRECISE_USER_KERNEL_TIME | |
344 | DECLARE("PRECISE_USER_KERNEL_TIME", | |
0a7de745 | 345 | offsetof(struct thread, precise_user_kernel_time)); |
5ba3f43e A |
346 | #endif |
347 | ||
348 | DECLARE("BA_VIRT_BASE", | |
0a7de745 | 349 | offsetof(struct boot_args, virtBase)); |
5ba3f43e | 350 | DECLARE("BA_PHYS_BASE", |
0a7de745 | 351 | offsetof(struct boot_args, physBase)); |
5ba3f43e | 352 | DECLARE("BA_MEM_SIZE", |
0a7de745 | 353 | offsetof(struct boot_args, memSize)); |
5ba3f43e | 354 | DECLARE("BA_TOP_OF_KERNEL_DATA", |
0a7de745 | 355 | offsetof(struct boot_args, topOfKernelData)); |
5ba3f43e | 356 | |
cb323159 A |
357 | DECLARE("ENTROPY_SAMPLE_COUNT", |
358 | offsetof(entropy_data_t, sample_count)); | |
5ba3f43e | 359 | DECLARE("ENTROPY_BUFFER", |
0a7de745 | 360 | offsetof(entropy_data_t, buffer)); |
cb323159 | 361 | DECLARE("ENTROPY_BUFFER_INDEX_MASK", ENTROPY_BUFFER_INDEX_MASK); |
5ba3f43e | 362 | |
0a7de745 | 363 | return 0; |
5ba3f43e | 364 | } |