version 1.71, 2010/07/06 20:50:35 |
version 1.72, 2010/07/08 11:22:24 |
Line 300 cpu_attach(device_t parent, device_t sel |
|
Line 300 cpu_attach(device_t parent, device_t sel |
|
return; |
return; |
} |
} |
aprint_naive(": Application Processor\n"); |
aprint_naive(": Application Processor\n"); |
ptr = (uintptr_t)kmem_alloc(sizeof(*ci) + CACHE_LINE_SIZE - 1, |
ptr = (uintptr_t)kmem_zalloc(sizeof(*ci) + CACHE_LINE_SIZE - 1, |
KM_SLEEP); |
KM_SLEEP); |
ci = (struct cpu_info *)roundup2(ptr, CACHE_LINE_SIZE); |
ci = (struct cpu_info *)roundup2(ptr, CACHE_LINE_SIZE); |
memset(ci, 0, sizeof(*ci)); |
|
ci->ci_curldt = -1; |
ci->ci_curldt = -1; |
#ifdef TRAPLOG |
#ifdef TRAPLOG |
ci->ci_tlog_base = kmem_zalloc(sizeof(struct tlog), KM_SLEEP); |
ci->ci_tlog_base = kmem_zalloc(sizeof(struct tlog), KM_SLEEP); |