diff --git a/bl1/bl1_main.c b/bl1/bl1_main.c index a5db085..a7a872c 100644 --- a/bl1/bl1_main.c +++ b/bl1/bl1_main.c @@ -126,9 +126,9 @@ * Ensure that MMU/Caches and coherency are turned on */ val = read_sctlr_el3(); - assert(val | SCTLR_M_BIT); - assert(val | SCTLR_C_BIT); - assert(val | SCTLR_I_BIT); + assert(val & SCTLR_M_BIT); + assert(val & SCTLR_C_BIT); + assert(val & SCTLR_I_BIT); /* * Check that Cache Writeback Granule (CWG) in CTR_EL0 matches the * provided platform value