Skip to content

Commit

Permalink
libsel4: Fix name for AARCH64_VSPACE_S2_START_L1
Browse files Browse the repository at this point in the history
CONFIG_AARCH64_VSPACE_S2_START_L1 has the correct namespace for a kernel
config option.

Signed-off-by: Kent McLeod <kent@kry10.com>
  • Loading branch information
kent-mcleod committed Jul 9, 2021
1 parent dec03f9 commit b762ba7
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
2 changes: 2 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ Upcoming release: BINARY COMPATIBLE
## Changes

* Rename libsel4 config option ENABLE_SMP_SUPPORT to CONFIG_ENABLE_SMP_SUPPORT to be namespace compliant.
* Rename libsel4 config option AARCH64_VSPACE_S2_START_L1 to CONFIG_AARCH64_VSPACE_S2_START_L1 to be namespace
compliant.

## Upgrade Notes
---
Expand Down
6 changes: 6 additions & 0 deletions include/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,9 @@
#ifdef CONFIG_ENABLE_SMP_SUPPORT
#define ENABLE_SMP_SUPPORT
#endif

#ifdef CONFIG_ARM_HYPERVISOR_SUPPORT
#ifdef CONFIG_ARM_PA_SIZE_BITS_40
#define AARCH64_VSPACE_S2_START_L1
#endif
#endif
6 changes: 0 additions & 6 deletions libsel4/include/sel4/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@

#include <autoconf.h>

#ifdef CONFIG_ARM_HYPERVISOR_SUPPORT
#ifdef CONFIG_ARM_PA_SIZE_BITS_40
#define AARCH64_VSPACE_S2_START_L1
#endif
#endif

/* Configurations requring the kernel log buffer */
#if defined CONFIG_BENCHMARK_TRACK_KERNEL_ENTRIES || \
defined CONFIG_BENCHMARK_TRACEPOINTS
Expand Down
6 changes: 6 additions & 0 deletions src/arch/arm/config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,12 @@ config_option(
"KernelArmCortexA15 OR KernelArmCortexA35 OR KernelArmCortexA57 OR KernelArmCortexA53 OR KernelArmCortexA72"
)

if(KernelArmPASizeBits40 AND ARM_HYPERVISOR_SUPPORT)
config_set(KernelAarch64VspaceS2StartL1 AARCH64_VSPACE_S2_START_L1 "ON")
else()
config_set(KernelAarch64VspaceS2StartL1 AARCH64_VSPACE_S2_START_L1 "OFF")
endif()

config_option(
KernelArmHypEnableVCPUCP14SaveAndRestore ARM_HYP_ENABLE_VCPU_CP14_SAVE_AND_RESTORE
"Trap, but don't save/restore VCPUs' CP14 accesses \
Expand Down

0 comments on commit b762ba7

Please sign in to comment.