mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-02 10:02:23 +00:00
The ACRN hypervisor uses 0, 2, 4, 6 as its local APIC IDs for virtualized CPUs and not the 0, 1, 2, 3 defaults we have. (I hate this feature, having to manually (!) probe and code these things in C isn't scaling. Zephyr needs to do the probing on its own somehow, even if it's an offline tool in Linux or something.) Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
9 lines
205 B
C
9 lines
205 B
C
/*
|
|
* Copyright (c) 2021 Intel Corporation
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
#include <stdint.h>
|
|
|
|
/* Local APIC IDs for each logical CPU */
|
|
uint8_t x86_cpu_loapics[] = { 0x00, 0x02, 0x04, 0x06 };
|