From 3f627798e70c9e0cb9f557b2d1c37f74589762dd Mon Sep 17 00:00:00 2001 From: TuxSH Date: Fri, 9 Mar 2018 22:56:41 +0100 Subject: [PATCH] Fix and/bic inversions in finalize_powerdown --- exosphere/src/arm.s | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exosphere/src/arm.s b/exosphere/src/arm.s index 939a869ea..81a533967 100644 --- a/exosphere/src/arm.s +++ b/exosphere/src/arm.s @@ -258,7 +258,7 @@ finalize_powerdown: /* Same as above, for EL3. */ mrs x0, sctlr_el3 - and x0, x0, #(1 << 2) + bic x0, x0, #(1 << 2) msr sctlr_el3, x0 isb @@ -274,7 +274,7 @@ finalize_powerdown: /* Disable receiving instruction cache/tbl maintenance operations. */ mrs x0, cpuectlr_el1 - and x0, x0, #(1 << 6) + bic x0, x0, #(1 << 6) msr cpuectlr_el1, x0 /* Prepare GICC */