Plan 9 from Bell Labs’s /usr/web/sources/contrib/uriel/changes/2005/1128/7

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


Better DMA handling.
 [rsc] --rw-rw-r-- M 374841 glenda sys 2466 Nov 28 09:22 sys/lib/dist/pc/sub/termrc
	/n/sourcesdump/2005/1128/plan9/sys/lib/dist/pc/sub/termrc:18,27 - 
	/n/sourcesdump/2005/1129/plan9/sys/lib/dist/pc/sub/termrc:18,27
	  for(disk in /dev/sd??) {
	  	if(test -f $disk/data && test -f $disk/ctl){
	  		disk/fdisk -p $disk/data >$disk/ctl >[2]/dev/null
	- 		if(~ $#nosddma 0)
	- 			echo dma on >$disk/ctl
	- 		if(~ $#nosdrwm 0)
	- 			echo rwm on >$disk/ctl
	+ #		if(~ $#nosddma 0)
	+ #			echo dma on >$disk/ctl
	+ #		if(~ $#nosdrwm 0)
	+ #			echo rwm on >$disk/ctl
	  	}
	  }
	  
	/n/sourcesdump/2005/1128/plan9/sys/lib/dist/pc/sub/termrc:70,76 - 
	/n/sourcesdump/2005/1129/plan9/sys/lib/dist/pc/sub/termrc:70,76
	  if(~ $dmamode yes)
	  	for(i in /dev/sd*/ctl)
	  		if(test -f $i)
	- 			{echo dma on; echo rwm on} >$i
	+ 			{echo dma on; echo rwm on >[2]/dev/null} >$i
	  
	  if(~ $installmode ask){
	  	echo -n 'install mode is (text, graphics)[graphics]: '


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].