Add the pc_acpi_id PCPU member. The new acpi_cpu driver uses this to

dereference the softc.
This commit is contained in:
Nate Lawson 2003-11-15 18:58:29 +00:00
parent b3ecca4d0a
commit b72e9cf526
4 changed files with 7 additions and 2 deletions

View File

@ -1279,6 +1279,8 @@ hammer_time(u_int64_t modulep, u_int64_t physfree)
void
cpu_pcpu_init(struct pcpu *pcpu, int cpuid, size_t size)
{
pcpu->pc_acpi_id = 0xffffffff;
}
int

View File

@ -40,7 +40,8 @@
*/
#define PCPU_MD_FIELDS \
struct pcpu *pc_prvspace; /* Self-reference */ \
register_t pc_scratch_rsp; /* User %rsp in syscall */
register_t pc_scratch_rsp; /* User %rsp in syscall */ \
u_int pc_acpi_id; /* ACPI CPU id */
#if defined(lint)

View File

@ -361,6 +361,7 @@ cpu_pcpu_init(struct pcpu *pcpu, int cpuid, size_t size)
KASSERT(size >= pcpusz + sizeof(struct pcb),
("%s: too small an allocation for pcpu", __func__));
pcpu->pc_pcb = (struct pcb *)((char*)pcpu + pcpusz);
pcpu->pc_acpi_id = 0xffffffff;
}
void

View File

@ -38,7 +38,8 @@
uint64_t pc_lid; /* local CPU ID */ \
uint32_t pc_awake:1; /* CPU is awake? */ \
uint64_t pc_clock; /* Clock counter. */ \
uint64_t pc_clockadj; /* Clock adjust. */
uint64_t pc_clockadj; /* Clock adjust. */ \
uint32_t pc_acpi_id; /* ACPI CPU id. */
struct pcpu;