The virtual platform offers an example of model based on
the Cortex-A9MP booting an SMP Linux on the ARM
Versatile Express platform. But, when using an SMP Linux, all
the processors execute by default the same application. The
ability to bind processes to processors is called (Central
Processing Unit) CPU affinity. This mechanism enables us to
get, set or retrieve affinity from some processors using system
calls which are related to the correct kernel and glibc (C
Library in the kernel). The scheduler obeys to what is defined
by the user and process runs only on the allowed processors.
The CPU affinity is represented as a bitmask. For example, if
the mask is 0x00000001, which means that processor 0 (the
first processor) is the allowed core. For the SMP Linux
managing four cores, we modified its affinity to manage two