Title: [7957] trunk/arch/blackfin/kernel/cplb-mpu/cplbmgr.c: Configure cache status for reserved ram in mpu cplb manager.
Revision
7957
Author
sonicz
Date
2009-12-09 02:01:50 -0500 (Wed, 09 Dec 2009)

Log Message

Configure cache status for reserved ram in mpu cplb manager.

Modified Paths


Diff

Modified: trunk/arch/blackfin/kernel/cplb-mpu/cplbmgr.c (7956 => 7957)


--- trunk/arch/blackfin/kernel/cplb-mpu/cplbmgr.c	2009-12-09 07:01:12 UTC (rev 7956)
+++ trunk/arch/blackfin/kernel/cplb-mpu/cplbmgr.c	2009-12-09 07:01:50 UTC (rev 7957)
@@ -131,7 +131,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) {
@@ -231,6 +233,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

Reply via email to