1
0
forked from 0ad/0ad
0ad/source/lib/sysdep/os_cpu.cpp
janwas ffdff6888d add NUMA and shared-L2-cache detect code (required at work)
enable most of IA-32 specific code to be used in amd64 (resides in
directory lib/sysdep/x86_x64)

bits: add IsBitSet
remove mem_PageSize (use os_cpu_PageSize instead)
cpuid: change interface to allow gracefully supporting later
subfunctions that require input parameters
amd64_asm.asm: add amd64 implementation of cpuid
cpu: move functions provided by OS to sysdep/os_cpu.cpp
cpu topology: avoid trouble when process affinity is set by remapping
processor numbers to 0..PopulationCount(processAffinity)
topology.cpp: move ex-ia32 topology code here.

This was SVN commit r5945.
2008-05-12 18:15:08 +00:00

15 lines
476 B
C++

/**
* =========================================================================
* File : os_cpu.cpp
* Project : 0 A.D.
* Description : OS-specific support functions relating to CPU and memory
* =========================================================================
*/
// license: GPL; see lib/license.txt
#include "precompiled.h"
#include "os_cpu.h"
ERROR_ASSOCIATE(ERR::OS_CPU_RESTRICTED_AFFINITY, "Cannot set desired CPU affinity", -1);