|
@@ -523,6 +523,17 @@ END_FTR_SECTION_NESTED(CPU_FTR_HAS_PPR,CPU_FTR_HAS_PPR,946)
|
|
|
#define PPC440EP_ERR42
|
|
|
#endif
|
|
|
|
|
|
+/* The following stops all load and store data streams associated with stream
|
|
|
+ * ID (ie. streams created explicitly). The embedded and server mnemonics for
|
|
|
+ * dcbt are different so we use machine "power4" here explicitly.
|
|
|
+ */
|
|
|
+#define DCBT_STOP_ALL_STREAM_IDS(scratch) \
|
|
|
+.machine push ; \
|
|
|
+.machine "power4" ; \
|
|
|
+ lis scratch,0x60000000@h; \
|
|
|
+ dcbt r0,scratch,0b01010; \
|
|
|
+.machine pop
|
|
|
+
|
|
|
/*
|
|
|
* toreal/fromreal/tophys/tovirt macros. 32-bit BookE makes them
|
|
|
* keep the address intact to be compatible with code shared with
|