Merge pull request #92 from cr1901/l2-gate

software/bios: Gate flush_l2_cache() if L2 Cache isn't present.
This commit is contained in:
Tim Ansell 2018-08-23 13:15:49 +10:00 committed by GitHub
commit ff908e404f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -27,7 +27,9 @@ static void __attribute__((noreturn)) boot(unsigned int r1, unsigned int r2, uns
irq_setie(0);
flush_cpu_icache();
flush_cpu_dcache();
#ifdef L2_SIZE
flush_l2_cache();
#endif
boot_helper(r1, r2, r3, addr);
while(1);
}