Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Sep 2006 00:10:32 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 105866 for review
Message-ID:  <200609090010.k890AWhc058454@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=105866

Change 105866 by imp@imp_lighthouse on 2006/09/09 00:09:43

	gcc's flow analysis is getting pretty good...  eliminate a few
	more stores.

Affected files ...

.. //depot/projects/arm/src/sys/boot/arm/at91/libat91/lib_AT91RM9200.h#3 edit

Differences ...

==== //depot/projects/arm/src/sys/boot/arm/at91/libat91/lib_AT91RM9200.h#3 (text+ko) ====

@@ -58,8 +58,10 @@
 	unsigned int periphBEnable)  // \arg PERIPH B to enable
 
 {
-	pPio->PIO_ASR = periphAEnable;
-	pPio->PIO_BSR = periphBEnable;
+	if (periphAEnable)
+		pPio->PIO_ASR = periphAEnable;
+	if (periphBEnable)
+		pPio->PIO_BSR = periphBEnable;
 	pPio->PIO_PDR = (periphAEnable | periphBEnable); // Set in Periph mode
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200609090010.k890AWhc058454>