shithub: riscv

Download patch

ref: cb083221d274aac11b62c59921f27c000075e2eb
parent: 029c271825d626f4eb9e8310f5e72a026d3c16d7
author: cinap_lenrek <[email protected]>
date: Mon Sep 14 11:15:14 EDT 2015

igfx: fix typos (thanks qwx)

--- a/sys/src/cmd/aux/vga/igfx.c
+++ b/sys/src/cmd/aux/vga/igfx.c
@@ -1499,7 +1499,7 @@
 	}
 
 	/* clear sticky bits */
-	wr(igfx, dp->auxctl.a, (1<<28) | (1<25) | (1<<30));
+	wr(igfx, dp->auxctl.a, (1<<28) | (1<<25) | (1<<30));
 
 	for(i=0; i<nelem(dp->auxdat); i++){
 		w  = buf[i*4+0]<<24;
@@ -1537,7 +1537,7 @@
 		}
 		sleep(5);
 	}
-	if(w & (1<28)){
+	if(w & (1<<28)){
 		werrstr("receive timeout");
 		return -1;
 	}