Skip to content

Commit

Permalink
armbian-kernel: enforce arm64 kernels use 48-bit PA/VA
Browse files Browse the repository at this point in the history
  • Loading branch information
rpardini committed Dec 30, 2024
1 parent ca0c4be commit ae45043
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/functions/compilation/armbian-kernel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ function armbian_kernel_config__600_enable_ebpf_and_btf_info() {
"CONFIG_DEBUG_INFO_BTF" "CONFIG_DEBUG_INFO_BTF_MODULES"
)

if [[ "${ARCH}" == "arm64" ]]; then
opts_y+=("CONFIG_ARM64_VA_BITS_48")
opts_val["CONFIG_ARM64_PA_BITS"]="48"
fi

declare opt_y opt_val opt_n
for opt_n in "${opts_n[@]}"; do
kernel_config_modifying_hashes+=("${opt_n}=n")
Expand Down

0 comments on commit ae45043

Please sign in to comment.