Browse Source

fix running fail problem using armcc O2 opinion

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@751 bbd45198-f89e-11dd-88c7-29a3b14d5316
qiuyiuestc 15 years ago
parent
commit
ea6e5155ef
1 changed files with 11 additions and 11 deletions
  1. 11 11
      libcpu/arm/s3c24x0/serial.h

+ 11 - 11
libcpu/arm/s3c24x0/serial.h

@@ -27,17 +27,17 @@ struct serial_int_tx
 
 
 typedef struct uartport
 typedef struct uartport
 {
 {
-	rt_uint32_t ulcon;
-	rt_uint32_t ucon;
-	rt_uint32_t ufcon;
-	rt_uint32_t umcon;
-	rt_uint32_t ustat;
-	rt_uint32_t urxb;
-	rt_uint32_t ufstat;
-	rt_uint32_t umstat;
-	rt_uint32_t utxh;	
-	rt_uint32_t urxh;	
-	rt_uint32_t ubrd;
+	volatile rt_uint32_t ulcon;
+	volatile rt_uint32_t ucon;
+	volatile rt_uint32_t ufcon;
+	volatile rt_uint32_t umcon;
+	volatile rt_uint32_t ustat;
+	volatile rt_uint32_t urxb;
+	volatile rt_uint32_t ufstat;
+	volatile rt_uint32_t umstat;
+	volatile rt_uint32_t utxh;	
+	volatile rt_uint32_t urxh;	
+	volatile rt_uint32_t ubrd;
 }uartport;
 }uartport;
 
 
 struct serial_device
 struct serial_device