diff --git a/drivers/platform/tegra/nvadsp/app_loader_linker.c b/drivers/platform/tegra/nvadsp/app_loader_linker.c index 3e64bdd9..303d6993 100644 --- a/drivers/platform/tegra/nvadsp/app_loader_linker.c +++ b/drivers/platform/tegra/nvadsp/app_loader_linker.c @@ -3,7 +3,7 @@ * * ADSP OS App management * - * Copyright (C) 2014-2017 NVIDIA Corporation. All rights reserved. + * Copyright (C) 2014-2020 NVIDIA Corporation. All rights reserved. * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and @@ -24,6 +24,7 @@ #include #include #include +#include #include "os.h" #include "dram_app_mem_manager.h" @@ -789,7 +790,7 @@ static int elf_check_arch_arm32(const struct elf32_hdr *x) /* Make sure the entry address is reasonable */ if (x->e_entry & 1) { - if (!(elf_hwcap & HWCAP_THUMB)) + if (!(ELF_HWCAP & HWCAP_THUMB)) return 0; } else if (x->e_entry & 3) return 0; @@ -799,13 +800,13 @@ static int elf_check_arch_arm32(const struct elf32_hdr *x) unsigned int flt_fmt; /* APCS26 is only allowed if the CPU supports it */ - if ((eflags & EF_ARM_APCS_26) && !(elf_hwcap & HWCAP_26BIT)) + if ((eflags & EF_ARM_APCS_26) && !(ELF_HWCAP & HWCAP_26BIT)) return 0; flt_fmt = eflags & (EF_ARM_VFP_FLOAT | EF_ARM_SOFT_FLOAT); /* VFP requires the supporting code */ - if (flt_fmt == EF_ARM_VFP_FLOAT && !(elf_hwcap & HWCAP_VFP)) + if (flt_fmt == EF_ARM_VFP_FLOAT && !(ELF_HWCAP & HWCAP_VFP)) return 0; } return 1;