Title: [7956] branches/2009R1/arch/blackfin/kernel/cplb-mpu/cplbmgr.c: Configure cache status for reserved ram in mpu cplb manager.
- Revision
- 7956
- Author
- sonicz
- Date
- 2009-12-09 02:01:12 -0500 (Wed, 09 Dec 2009)
Log Message
Configure cache status for reserved ram in mpu cplb manager.
Modified Paths
Diff
Modified: branches/2009R1/arch/blackfin/kernel/cplb-mpu/cplbmgr.c (7955 => 7956)
--- branches/2009R1/arch/blackfin/kernel/cplb-mpu/cplbmgr.c 2009-12-08 12:42:57 UTC (rev 7955)
+++ branches/2009R1/arch/blackfin/kernel/cplb-mpu/cplbmgr.c 2009-12-09 07:01:12 UTC (rev 7956)
@@ -133,7 +133,9 @@
} else
return CPLB_PROT_VIOL;
} else if (addr >= _ramend) {
- d_data |= CPLB_USER_RD | CPLB_USER_WR;
+ d_data |= CPLB_USER_RD | CPLB_USER_WR;
+ if (reserved_mem_dcache_on)
+ d_data |= CPLB_L1_CHBL;
} else {
mask = current_rwx_mask[cpu];
if (mask) {
@@ -216,6 +218,8 @@
return CPLB_PROT_VIOL;
} else if (addr >= _ramend) {
i_data |= CPLB_USER_RD;
+ if (reserved_mem_icache_on)
+ d_data |= CPLB_L1_CHBL;
} else {
/*
* Two cases to distinguish - a supervisor access must
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits