diff options
author | nwhitehorn <nwhitehorn@FreeBSD.org> | 2010-11-12 04:18:19 +0000 |
---|---|---|
committer | nwhitehorn <nwhitehorn@FreeBSD.org> | 2010-11-12 04:18:19 +0000 |
commit | b5495356b24ecdcdf829764b8e2fd95dea55831c (patch) | |
tree | d54d0e93b610c6afc2a3c82b49320ba55e02cad8 /sys/sys/smp.h | |
parent | 3d8843cae15a79d5dd48c925dd352a875b214068 (diff) | |
download | FreeBSD-src-b5495356b24ecdcdf829764b8e2fd95dea55831c.zip FreeBSD-src-b5495356b24ecdcdf829764b8e2fd95dea55831c.tar.gz |
Add some platform KOBJ extensions and continue integrating PowerPC
hypervisor infrastructure support:
- Fix coexistence of multiple platform modules in the same kernel
- Allow platform modules to provide an SMP topology
- PowerPC hypervisors limit the amount of memory accessible in real mode.
Allow the platform modules to specify the maximum real-mode address,
and modify the bits of the kernel that need to allocate
real-mode-accessible buffers to respect this limits.
Diffstat (limited to 'sys/sys/smp.h')
-rw-r--r-- | sys/sys/smp.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/sys/smp.h b/sys/sys/smp.h index 619eba8..6104d3e 100644 --- a/sys/sys/smp.h +++ b/sys/sys/smp.h @@ -16,8 +16,6 @@ #ifndef LOCORE -#ifdef SMP - /* * Topology of a NUMA or HTT system. * @@ -41,6 +39,8 @@ struct cpu_group { int8_t cg_flags; /* Traversal modifiers. */ }; +typedef struct cpu_group *cpu_group_t; + /* * Defines common resources for CPUs in the group. The highest level * resource should be used when multiple are shared. @@ -60,6 +60,7 @@ struct cpu_group { /* * Convenience routines for building topologies. */ +#ifdef SMP struct cpu_group *smp_topo(void); struct cpu_group *smp_topo_none(void); struct cpu_group *smp_topo_1level(int l1share, int l1count, int l1flags); |