瀏覽代碼

85xx io out functions need sync after write.

This fixes the mc146818 rtc_read/write functions for 85xx.

Signed-off-by: Ed Swarthout <Ed.Swarthout@freescale.com>
Ed Swarthout 17 年之前
父節點
當前提交
1487adbdcf
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      cpu/mpc85xx/start.S

+ 5 - 0
cpu/mpc85xx/start.S

@@ -701,6 +701,7 @@ in8:
 	.globl	out8
 	.globl	out8
 out8:
 out8:
 	stb	r4,0x0000(r3)
 	stb	r4,0x0000(r3)
+	sync
 	blr
 	blr
 
 
 /*------------------------------------------------------------------------------- */
 /*------------------------------------------------------------------------------- */
@@ -710,6 +711,7 @@ out8:
 	.globl	out16
 	.globl	out16
 out16:
 out16:
 	sth	r4,0x0000(r3)
 	sth	r4,0x0000(r3)
+	sync
 	blr
 	blr
 
 
 /*------------------------------------------------------------------------------- */
 /*------------------------------------------------------------------------------- */
@@ -719,6 +721,7 @@ out16:
 	.globl	out16r
 	.globl	out16r
 out16r:
 out16r:
 	sthbrx	r4,r0,r3
 	sthbrx	r4,r0,r3
+	sync
 	blr
 	blr
 
 
 /*------------------------------------------------------------------------------- */
 /*------------------------------------------------------------------------------- */
@@ -728,6 +731,7 @@ out16r:
 	.globl	out32
 	.globl	out32
 out32:
 out32:
 	stw	r4,0x0000(r3)
 	stw	r4,0x0000(r3)
+	sync
 	blr
 	blr
 
 
 /*------------------------------------------------------------------------------- */
 /*------------------------------------------------------------------------------- */
@@ -737,6 +741,7 @@ out32:
 	.globl	out32r
 	.globl	out32r
 out32r:
 out32r:
 	stwbrx	r4,r0,r3
 	stwbrx	r4,r0,r3
+	sync
 	blr
 	blr
 
 
 /*------------------------------------------------------------------------------- */
 /*------------------------------------------------------------------------------- */