=================================================================== RCS file: /cvs/sys/arch/arm/sa11x0/sa11x0_com.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- sys/arch/arm/sa11x0/sa11x0_com.c 2008/03/04 16:05:17 1.1 +++ sys/arch/arm/sa11x0/sa11x0_com.c 2008/03/05 15:35:40 1.2 @@ -214,13 +214,13 @@ /* wait for any pending transmission to finish */ timo = 50000; - while (((*(uint32_t *)(sacom_base + SACOM_SR1)) & SR1_TBY) == 1 && --timo) + while (((*(volatile uint32_t *)(sacom_base + SACOM_SR1)) & SR1_TBY) == 1 && --timo) ; *(uint32_t *)(sacom_base + SACOM_DR) = c; /* wait for this transmission to complete */ timo = 1500000; - while (((*(uint32_t *)(sacom_base + SACOM_SR1)) & SR1_TBY) == 1 && --timo) + while (((*(volatile uint32_t *)(sacom_base + SACOM_SR1)) & SR1_TBY) == 1 && --timo) ; }