summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arch/x86/machine/string.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86/machine/string.c b/arch/x86/machine/string.c
index e4f7f0c..c44b62d 100644
--- a/arch/x86/machine/string.c
+++ b/arch/x86/machine/string.c
@@ -13,6 +13,11 @@
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ *
+ * Despite comparison and scan instructions not having side-effects, the
+ * memory clobber is used because the compiler cannot infer dependencies
+ * on the memory referenced by the pointers.
*/
#include <stddef.h>