coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
cpu_device.c File Reference
#include <device/device.h>
#include <console/console.h>
Include dependency graph for cpu_device.c:

Go to the source code of this file.

Functions

struct deviceadd_cpu_device (struct bus *cpu_bus, unsigned int apic_id, int enabled)
 
void set_cpu_topology (struct device *cpu, unsigned int node, unsigned int package, unsigned int core, unsigned int thread)
 

Function Documentation

◆ add_cpu_device()

struct device* add_cpu_device ( struct bus cpu_bus,
unsigned int  apic_id,
int  enabled 
)

Definition at line 6 of file cpu_device.c.

References alloc_find_dev(), BIOS_DEBUG, dev_path(), DEVICE_PATH_APIC, device::enabled, find_dev_path(), NULL, and printk.

Referenced by cpu_bus_scan().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_cpu_topology()

void set_cpu_topology ( struct device cpu,
unsigned int  node,
unsigned int  package,
unsigned int  core,
unsigned int  thread 
)