changeset 4047:a400e4a801fd

6533535 sun4v: generic hwblkclr function should always return non-zero
author iskreen
date Mon, 16 Apr 2007 15:36:17 -0700
parents 18a99a0d9b30
children 7212bc4f07cc
files usr/src/uts/sun4v/cpu/generic_copy.s
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/uts/sun4v/cpu/generic_copy.s	Mon Apr 16 15:29:31 2007 -0700
+++ b/usr/src/uts/sun4v/cpu/generic_copy.s	Mon Apr 16 15:36:17 2007 -0700
@@ -1231,9 +1231,9 @@
 
 /*
  * hwblkclr - clears block-aligned, block-multiple-sized regions that are
- * longer than 256 bytes in length using load/stores.  If
- * the criteria for using this routine are not met then it calls bzero
- * and returns 1.  Otherwise 0 is returned indicating success.
+ * longer than 256 bytes in length using load/stores. For the generic
+ * module, we will return 1 to ensure that the pages in cache should be
+ * flushed to ensure integrity.
  * Caller is responsible for ensuring use_hw_bzero is true and that
  * kpreempt_disable() has been called.
  */
@@ -1340,7 +1340,7 @@
 .pz_finish:
 	membar	#Sync
 	ret
-	restore	%g0, 0, %o0		! return (bzero or not)
+	restore	%g0, 1, %o0	! return (1) - did not use block operations	
 	SET_SIZE(hwblkclr)
 #endif	/* lint */