Commit 354ab57d authored by Andrew Thoelke's avatar Andrew Thoelke
Browse files

Fix incorrect assertions in bl1_main()

The validation of the caching enable state in bl1_main() was
incorrect resulting in the state not being checked. Using the right
operator fixes this.

Change-Id: I2a99478f420281a1dcdf365d3d4fd8394cd21b51
parent 79b1ebda
...@@ -126,9 +126,9 @@ void bl1_main(void) ...@@ -126,9 +126,9 @@ void bl1_main(void)
* Ensure that MMU/Caches and coherency are turned on * Ensure that MMU/Caches and coherency are turned on
*/ */
val = read_sctlr_el3(); val = read_sctlr_el3();
assert(val | SCTLR_M_BIT); assert(val & SCTLR_M_BIT);
assert(val | SCTLR_C_BIT); assert(val & SCTLR_C_BIT);
assert(val | SCTLR_I_BIT); assert(val & SCTLR_I_BIT);
/* /*
* Check that Cache Writeback Granule (CWG) in CTR_EL0 matches the * Check that Cache Writeback Granule (CWG) in CTR_EL0 matches the
* provided platform value * provided platform value
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment