Plan 9 from Bell Labs’s /usr/web/sources/contrib/uriel/changes/2005/0921/1

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


Initfp again.
 [jmk] --rw-rw-r-- M 137273 presotto sys 4735 Sep 20 23:41 sys/src/9/ppc/dat.h
 [rsc] --rw-rw-r-- M 137273 glenda sys 12976 Sep 21 23:44 sys/src/9/port/devmouse.c
	/n/sourcesdump/2005/0921/plan9/sys/src/9/port/devmouse.c:600,605 - 
	/n/sourcesdump/2005/0922/plan9/sys/src/9/port/devmouse.c:600,613
	  	static uchar b[] = { 0, 4, 1, 5, 0, 2, 1, 3 };
	  	short x;
	  	int dx, dy, newbuttons;
	+ 	static ulong lasttick;
	+ 	ulong m;
	+ 	
	+ 	/* Resynchronize in stream with timing. */
	+ 	m = MACHP(0)->ticks;
	+ 	if(TK2SEC(m - lasttick) > 2)
	+ 		nb = 0;
	+ 	lasttick = m;
	  
	  	if(nb==0){
	  		/*
	/n/sourcesdump/2005/0921/plan9/sys/src/9/port/devmouse.c:646,651 - 
	/n/sourcesdump/2005/0922/plan9/sys/src/9/port/devmouse.c:654,668
	  {
	  	static uchar msg[3];
	  	static int nb;
	+ 	static ulong lasttick;
	+ 	ulong m;
	+ 	
	+ 	/* Resynchronize in stream with timing. */
	+ 	m = MACHP(0)->ticks;
	+ 	if(TK2SEC(m - lasttick) > 2)
	+ 		nb = 0;
	+ 	lasttick = m;
	+ 
	  	msg[nb++] = c & 0x7f;
	  	if (nb == 4) {
	  		schar dx,dy,newbuttons;
	/n/sourcesdump/2005/0921/plan9/sys/src/9/port/devmouse.c:675,680 - 
	/n/sourcesdump/2005/0922/plan9/sys/src/9/port/devmouse.c:692,705
	  	static int nb;
	  	static uchar b[] = {0, 4, 2, 6, 1, 5, 3, 7, 0, 2, 2, 6, 1, 3, 3, 7};
	  	int dx, dy, newbuttons;
	+ 	static ulong lasttick;
	+ 	ulong m;
	+ 	
	+ 	/* Resynchronize in stream with timing. */
	+ 	m = MACHP(0)->ticks;
	+ 	if(TK2SEC(m - lasttick) > 2)
	+ 		nb = 0;
	+ 	lasttick = m;
	  
	  	if((c&0xF0) == 0x80)
	  		nb=0;


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].