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

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


Fix lock/ilock mismatch.
 [rsc] --rw-rw-r-- M 8988 glenda sys 12365 Nov 21 07:08 sys/src/9/pc/kbd.c
	/n/sourcesdump/2005/1121/plan9/sys/src/9/pc/kbd.c:317,326 - 
	/n/sourcesdump/2005/1122/plan9/sys/src/9/pc/kbd.c:317,326
	  	/*
	  	 *  get status
	  	 */
	- 	lock(&i8042lock);
	+ 	ilock(&i8042lock);
	  	s = inb(Status);
	  	if(!(s&Inready)){
	- 		unlock(&i8042lock);
	+ 		iunlock(&i8042lock);
	  		return;
	  	}
	  
	/n/sourcesdump/2005/1121/plan9/sys/src/9/pc/kbd.c:328,334 - 
	/n/sourcesdump/2005/1122/plan9/sys/src/9/pc/kbd.c:328,334
	  	 *  get the character
	  	 */
	  	c = inb(Data);
	- 	unlock(&i8042lock);
	+ 	iunlock(&i8042lock);
	  
	  	/*
	  	 *  if it's the aux port...


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.