Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a17c7f6f authored by Robin Getz's avatar Robin Getz Committed by Mike Frysinger
Browse files

Blackfin: make sure MPU CPLB for first 1k is marked as valid



This way we properly catch and kill applications that jump to a NULL ptr.

Signed-off-by: default avatarRobin Getz <robin.getz@analog.com>
Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
parent 8af7ffa0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -64,7 +64,7 @@ void __init generate_cplb_tables_cpu(unsigned int cpu)
	dcplb_tbl[cpu][i_d++].data = SDRAM_OOPS | PAGE_SIZE_1KB;

	icplb_tbl[cpu][i_i].addr = 0;
	icplb_tbl[cpu][i_i++].data = i_cache | CPLB_USER_RD | PAGE_SIZE_1KB;
	icplb_tbl[cpu][i_i++].data = CPLB_VALID | i_cache | CPLB_USER_RD | PAGE_SIZE_1KB;

	/* Cover kernel memory with 4M pages.  */
	addr = 0;