From: Okash Khawaja Date: Fri, 28 Apr 2023 12:18:28 +0000 (+0100) Subject: refactor(cpus): use BIT macro in a consistent manner X-Git-Tag: baikal/aarch64/sdk5.10~1^2~43^2 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=baeaf292ce1e78714af5de0c327a50a5967e3d47;p=arm-tf.git refactor(cpus): use BIT macro in a consistent manner In assembly code, BIT macro is used with a preceding hash #. Let's update Cortex X1 code to follow the same convention. Excluding hash doesn't cause compilation to fail or emit incorrect code. Signed-off-by: Okash Khawaja Change-Id: If304cdf90542d2edcab3e2d66cd7e905ff7fd047 --- diff --git a/lib/cpus/aarch64/cortex_x1.S b/lib/cpus/aarch64/cortex_x1.S index 9a7f66652..de653655b 100644 --- a/lib/cpus/aarch64/cortex_x1.S +++ b/lib/cpus/aarch64/cortex_x1.S @@ -37,7 +37,7 @@ func errata_x1_1821534_wa bl check_errata_1821534 cbz x0, 1f mrs x1, CORTEX_X1_ACTLR2_EL1 - orr x1, x1, BIT(2) + orr x1, x1, #BIT(2) msr CORTEX_X1_ACTLR2_EL1, x1 isb 1: @@ -64,7 +64,7 @@ func errata_x1_1688305_wa bl check_errata_1688305 cbz x0, 1f mrs x0, CORTEX_X1_ACTLR2_EL1 - orr x0, x0, BIT(1) + orr x0, x0, #BIT(1) msr CORTEX_X1_ACTLR2_EL1, x0 isb @@ -92,7 +92,7 @@ func errata_x1_1827429_wa bl check_errata_1827429 cbz x0, 1f mrs x0, CORTEX_X1_CPUECTLR_EL1 - orr x0, x0, BIT(53) + orr x0, x0, #BIT(53) msr CORTEX_X1_CPUECTLR_EL1, x0 isb