/macosx-10.5.8/xnu-1228.15.4/osfmk/i386/ |
H A D | cpu_threads.h | 40 #define cpu_to_core_lapic(cpu) (cpu_to_lapic[cpu] & ~CPU_THREAD_MASK) 41 #define cpu_to_core_cpu(cpu) (lapic_to_cpu[cpu_to_core_lapic(cpu)]) 42 #define cpu_to_logical_cpu(cpu) (cpu_to_lapic[cpu] & CPU_THREAD_MASK) 43 #define cpu_is_core_cpu(cpu) (cpu_to_logical_cpu(cpu) == 0) 45 #define _cpu_to_lcpu(cpu) (&cpu_datap(cpu) [all...] |
H A D | pmCPU.h | 79 void (*resyncDeadlines)(int cpu); 81 x86_lcpu_t *(*GetLCPU)(int cpu); 82 x86_core_t *(*GetCore)(int cpu); 83 x86_die_t *(*GetDie)(int cpu); 84 x86_pkg_t *(*GetPackage)(int cpu); 91 boolean_t (*GetHibernate)(int cpu); 105 uint64_t pmCPUGetDeadline(struct cpu_data *cpu); 106 uint64_t pmCPUSetDeadline(struct cpu_data *cpu, uint64_t deadline); 107 void pmCPUDeadline(struct cpu_data *cpu); 108 boolean_t pmCPUExitIdle(struct cpu_data *cpu); [all...] |
H A D | mp.c | 116 static boolean_t cpu_signal_pending(int cpu, mp_event_t event); 267 * Initialize (or re-initialize) the descriptor tables for this cpu. 311 kprintf("Started cpu %d (lapic id %08x)\n", slot_num, lapic); 519 i386_cpu_IPI(int cpu) argument 524 if(cpu_datap(cpu)->cpu_signals & 6) { /* (BRINGUP) */ 525 kprintf("i386_cpu_IPI: sending enter debugger signal (%08X) to cpu %d\n", cpu_datap(cpu)->cpu_signals, cpu); 531 if(!trappedalready && (cpu_datap(cpu)->cpu_signals & 6)) { /* (BRINGUP) */ 534 panic("i386_cpu_IPI: sending enter debugger signal (%08X) to cpu 565 cpu_interrupt(int cpu) argument 577 cpu_NMI_interrupt(int cpu) argument 605 cpu_PM_interrupt(int cpu) argument 624 i386_signal_cpu(int cpu, mp_event_t event, mp_sync_t mode) argument 663 unsigned int cpu; local 682 unsigned int cpu; local 886 cpu_t cpu; local 1093 unsigned int cpu; local 1183 cpu_signal_pending(int cpu, mp_event_t event) argument 1269 int cpu = processor->cpu_num; local 1285 unsigned int cpu; local [all...] |
H A D | pmCPU.c | 213 pmGetLogicalCPU(int cpu) argument 215 return(cpu_to_lcpu(cpu)); 227 pmGetCore(int cpu) argument 229 return(cpu_to_core(cpu)); 241 pmGetDie(int cpu) argument 243 return(cpu_to_die(cpu)); 255 pmGetPackage(int cpu) argument 257 return(cpu_to_package(cpu)); 283 pmCPUGetDeadline(cpu_data_t *cpu) argument 290 deadline = (*pmDispatch->GetDeadline)(&cpu 300 pmCPUSetDeadline(cpu_data_t *cpu, uint64_t deadline) argument 314 pmCPUDeadline(cpu_data_t *cpu) argument 326 pmCPUExitIdle(cpu_data_t *cpu) argument 345 pmCPUExitHalt(int cpu) argument 358 pmCPUExitHaltToOff(int cpu) argument 384 pmCPUMarkRunning(cpu_data_t *cpu) argument 569 machine_cpu_is_inactive(int cpu) argument 594 pmCPUGetHibernate(int cpu) argument 606 pmReSyncDeadlines(int cpu) argument [all...] |
H A D | cpu.c | 29 * File: i386/cpu.c 31 * cpu specific routines 109 int cpu) 113 if (cpu == cpu_number()) { 123 ret = intel_startCPU_fast(cpu); 129 ret = intel_startCPU(cpu); 133 kprintf("cpu: cpu_start(%d) returning failure!\n", cpu); 140 int cpu) 142 cpu_data_t *cdp = cpu_datap(cpu); 108 cpu_start( int cpu) argument 139 cpu_exit_wait( int cpu) argument 211 cpu_to_processor( int cpu) argument [all...] |
H A D | acpi.c | 139 unsigned int cpu; local 148 for (cpu = 0; cpu < real_ncpus; cpu += 1) { 149 if (cpu == my_cpu) 151 rc = pmCPUExitHaltToOff(cpu); 154 rc, cpu);
|
H A D | mp_events.h | 72 extern void i386_signal_cpu(int cpu, mp_event_t event, mp_sync_t mode); 77 extern void cpu_NMI_interrupt(int /* cpu */);
|
H A D | mp.h | 90 extern void cpu_interrupt(int cpu); 103 extern int kdb_cpu; /* current cpu running kdb */ 119 * All cpu rendezvous: 132 * All cpu broadcast. 143 cpu_to_cpumask(cpu_t cpu) argument 145 return (cpu < 32) ? (1 << cpu) : 0; 153 * The mask may include the local cpu. 156 * - SYNC: the calls are performed serially in logical cpu order. 170 * - request the callout (if registered) on a given cpu 181 int cpu; member in struct:__anon732 [all...] |
H A D | cpu_threads.c | 362 x86_lcpu_init(int cpu) argument 368 cpup = cpu_datap(cpu); 372 lcpu->cpu = cpup; 379 lcpu->cpu_num = cpu; 380 lcpu->lnum = cpu; 391 x86_core_alloc(int cpu) argument 396 cpup = cpu_datap(cpu); 432 x86_package_find(int cpu) argument 438 cpup = cpu_datap(cpu); 453 x86_die_find(int cpu) argument 479 x86_core_find(int cpu) argument 532 x86_die_alloc(int cpu) argument 574 x86_package_alloc(int cpu) argument 839 cpu_thread_alloc(int cpu) argument 1224 x86_lcpu_t *cpu; local [all...] |
H A D | db_trace.c | 216 int cpu; local 218 for (cpu = 0; cpu < real_ncpus; cpu++) { 219 if (cpu_datap(cpu)->cpu_running == TRUE && 220 cpu_datap(cpu)->cpu_active_thread == thr_act && cpu_datap(cpu)->cpu_kdb_saved_state) { 221 dp = (unsigned int *) (((unsigned int)cpu_datap(cpu)->cpu_kdb_saved_state) + 244 int cpu; local 247 for (cpu 574 int cpu; local [all...] |
/macosx-10.5.8/xnu-1228.15.4/osfmk/profiling/ |
H A D | profile-kgmon.c | 80 #define PROFILE_VARS(cpu) (&_profile_vars) 97 int cpu; local 133 DECODE_KGMON(indx, kgmon, cpu); 136 printf("_profile_kgmon: start: kgmon control = %2d, cpu = %d, count = %ld\n", 137 kgmon, cpu, (long)count); 141 if (cpu < 0 || cpu >= max_cpus) { 143 printf("KGMON, bad cpu %d\n", cpu); 149 pv = PROFILE_VARS(cpu); [all...] |
H A D | profile-mk.h | 55 * Macros to access the nth cpu's profile variable structures. 59 #define PROFILE_VARS(cpu) (&_profile_vars) 63 #define PROFILE_VARS(cpu) (_profile_vars_cpus[(cpu)])
|
/macosx-10.5.8/xnu-1228.15.4/osfmk/chud/i386/ |
H A D | chud_cpu_i386.c | 45 #pragma mark **** cpu enable/disable **** 51 kern_return_t chudxnu_enable_cpu(int cpu, boolean_t enable) argument 55 if(cpu < 0 || (unsigned int)cpu >= real_ncpus) // sanity check 58 if((cpu_data_ptr[cpu] != NULL) && cpu != master_cpu) { 59 processor_t processor = cpu_to_processor(cpu); 90 chudxnu_get_cpu_interrupt_counters(int cpu, rupt_counters_t *rupts) argument 92 if(cpu < 0 || (unsigned int)cpu > 147 chudxnu_clear_cpu_interrupt_counters(int cpu) argument 165 chudxnu_get_cpu_rupt_counters(int cpu, rupt_counters_t *rupts) argument 172 chudxnu_clear_cpu_rupt_counters(int cpu) argument [all...] |
H A D | chud_xnu_private.h | 34 #pragma mark **** cpu timer **** 37 * Cross-cpu signal request entries are queued on the target cpu's 39 * support sending arguments with cross-cpu signals. Hence we have
|
/macosx-10.5.8/xnu-1228.15.4/osfmk/i386/vmx/ |
H A D | vmx_cpu.c | 195 vmx_cpu_t *cpu = ¤t_cpu_datap()->cpu_vmx; local 201 assert(cpu->specs.vmx_present); 203 if (NULL == cpu->vmxon_region) 205 vmxon_region_paddr = vmx_paddr(cpu->vmxon_region); 212 assert(vmx_is_cr0_valid(&cpu->specs)); 213 assert(vmx_is_cr4_valid(&cpu->specs)); 245 vmx_cpu_t *cpu = &cpu_datap(i)->cpu_vmx; local 248 cpu->vmxon_region = vmx_pcalloc(); 249 if (NULL == cpu->vmxon_region) 251 *(uint32_t*)(cpu 265 vmx_cpu_t *cpu = &cpu_datap(i)->cpu_vmx; local 284 vmx_cpu_t *cpu = &cpu_datap(i)->cpu_vmx; local [all...] |
/macosx-10.5.8/xnu-1228.15.4/bsd/kern/ |
H A D | kdebug.c | 203 unsigned int cpu, i; local 217 for (cpu = 0; cpu < kd_cpus; cpu++) { 218 if (kmem_alloc(kernel_map, (unsigned int *)&kdbip[cpu].kd_buffer, kd_bufsize) != KERN_SUCCESS) 221 if (cpu < kd_cpus) { 222 for (i = 0; i < cpu; i++) 231 for (cpu = 0; cpu < kd_cpus; cpu 245 unsigned int cpu; local 268 int cpu; local 1275 unsigned int cpu; local [all...] |
/macosx-10.5.8/xnu-1228.15.4/osfmk/chud/ |
H A D | chud_xnu.h | 58 extern kern_return_t chudxnu_bind_thread(thread_t thread, int cpu, int options); 97 #pragma mark **** cpu **** 99 // cpu 105 extern kern_return_t chudxnu_enable_cpu(int cpu, boolean_t enable); 116 extern kern_return_t chudxnu_set_shadowed_spr(int cpu, int spr, uint32_t val); 117 extern kern_return_t chudxnu_set_shadowed_spr64(int cpu, int spr, uint64_t val); 147 extern kern_return_t chudxnu_get_cpu_interrupt_counters(int cpu, rupt_counters_t *rupts); 148 extern kern_return_t chudxnu_clear_cpu_interrupt_counters(int cpu); 157 // cpu timer - each cpu ha [all...] |
/macosx-10.5.8/xnu-1228.15.4/osfmk/chud/ppc/ |
H A D | chud_cpu_ppc.c | 60 #pragma mark **** cpu enable/disable **** 66 kern_return_t chudxnu_enable_cpu(int cpu, boolean_t enable) argument 70 if(cpu<0 || cpu>=chudxnu_phys_cpu_count()) { // check sanity of cpu argument 74 if((PerProcTable[cpu].ppe_vaddr != (struct per_proc_info *)NULL) 75 && cpu != master_cpu) { 76 processor_t processor = cpu_to_processor(cpu); 90 kern_return_t chudxnu_enable_cpu_nap(int cpu, boolean_t enable) argument 92 if(cpu< 105 chudxnu_cpu_nap_enabled(int cpu) argument 122 chudxnu_set_shadowed_spr(int cpu, int spr, uint32_t val) argument 138 chudxnu_bind_thread(current_thread(), cpu, 0); local 263 chudxnu_set_shadowed_spr64(int cpu, int spr, uint64_t val) argument 278 chudxnu_bind_thread(current_thread(), cpu, 0); local 344 chudxnu_get_orig_cpu_l2cr(int cpu) argument 353 chudxnu_get_orig_cpu_l3cr(int cpu) argument 364 chudxnu_read_spr(int cpu, int spr, uint32_t *val_p) argument 596 chudxnu_read_spr64(int cpu, int spr, uint64_t *val_p) argument 684 chudxnu_write_spr(int cpu, int spr, uint32_t val) argument 965 chudxnu_write_spr64(int cpu, int spr, uint64_t val) argument 1097 chudxnu_get_cpu_interrupt_counters(int cpu, rupt_counters_t *rupts) argument 1139 chudxnu_clear_cpu_interrupt_counters(int cpu) argument 1179 chudxnu_get_cpu_rupt_counters(int cpu, rupt_counters_t *rupts) argument 1185 chudxnu_clear_cpu_rupt_counters(int cpu) argument [all...] |
H A D | chud_xnu_private.h | 48 #pragma mark **** cpu timer ****
|
/macosx-10.5.8/xnu-1228.15.4/osfmk/kdp/ |
H A D | kdp_internal.h | 131 unsigned int cpu, 140 unsigned int cpu,
|
/macosx-10.5.8/xnu-1228.15.4/osfmk/vm/ |
H A D | pmap.h | 313 #define PMAP_ACTIVATE_USER(thr, cpu) 315 #define PMAP_ACTIVATE_USER(thr, cpu) { \ 320 PMAP_ACTIVATE(pmap, (thr), (cpu)); \ 327 #define PMAP_DEACTIVATE_USER(thr, cpu) 329 #define PMAP_DEACTIVATE_USER(thr, cpu) { \ 334 PMAP_DEACTIVATE(pmap, (thr), (cpu)); \ 341 #define PMAP_ACTIVATE_KERNEL(cpu) 343 #define PMAP_ACTIVATE_KERNEL(cpu) \ 344 PMAP_ACTIVATE(pmap_kernel(), THREAD_NULL, cpu) 350 #define PMAP_DEACTIVATE_KERNEL(cpu) [all...] |
/macosx-10.5.8/xnu-1228.15.4/bsd/conf/tools/doconf/ |
H A D | doconf.csh | 25 # user to use the -cpu option. I thought this script was supposed 43 # Fixed to require wired-in cpu type names for only those 54 # MASTER.<machine-type> files; added -cpu switch. 95 case "-cpu": 141 echo "${prog}: no /etc/machine, specify machine type with -cpu" 142 echo "${prog}: e.g. ${prog} -cpu VAX CONFIGURATION" 151 set cpu=ca 156 set cpu=sun3 160 set cpu=`echo $MACHINE | tr A-Z a-z` 170 set MASTER_CPU=${MASTER}.${cpu} [all...] |
/macosx-10.5.8/xnu-1228.15.4/iokit/conf/tools/doconf/ |
H A D | doconf.csh | 25 # user to use the -cpu option. I thought this script was supposed 43 # Fixed to require wired-in cpu type names for only those 54 # MASTER.<machine-type> files; added -cpu switch. 95 case "-cpu": 141 echo "${prog}: no /etc/machine, specify machine type with -cpu" 142 echo "${prog}: e.g. ${prog} -cpu VAX CONFIGURATION" 151 set cpu=ca 156 set cpu=sun3 160 set cpu=`echo $MACHINE | tr A-Z a-z` 170 set MASTER_CPU=${MASTER}.${cpu} [all...] |
/macosx-10.5.8/xnu-1228.15.4/libkern/conf/tools/doconf/ |
H A D | doconf.csh | 25 # user to use the -cpu option. I thought this script was supposed 43 # Fixed to require wired-in cpu type names for only those 54 # MASTER.<machine-type> files; added -cpu switch. 95 case "-cpu": 141 echo "${prog}: no /etc/machine, specify machine type with -cpu" 142 echo "${prog}: e.g. ${prog} -cpu VAX CONFIGURATION" 151 set cpu=ca 156 set cpu=sun3 160 set cpu=`echo $MACHINE | tr A-Z a-z` 170 set MASTER_CPU=${MASTER}.${cpu} [all...] |
/macosx-10.5.8/xnu-1228.15.4/libsa/conf/tools/doconf/ |
H A D | doconf.csh | 25 # user to use the -cpu option. I thought this script was supposed 43 # Fixed to require wired-in cpu type names for only those 54 # MASTER.<machine-type> files; added -cpu switch. 95 case "-cpu": 141 echo "${prog}: no /etc/machine, specify machine type with -cpu" 142 echo "${prog}: e.g. ${prog} -cpu VAX CONFIGURATION" 151 set cpu=ca 156 set cpu=sun3 160 set cpu=`echo $MACHINE | tr A-Z a-z` 170 set MASTER_CPU=${MASTER}.${cpu} [all...] |