plan 9 kernel history: overview | file list | diff list

1999/0424/alphapc/arch164.c (diff list | history)

1999/0423/sys/src/9/alphapc/arch164.c:27,321999/0424/sys/src/9/alphapc/arch164.c:27,52 (short | long | prev | next)
1999/0415    
	return 0;	/* bug! */ 
} 
 
1999/0424    
static uvlong* sgmap; 
 
static void 
sginit(void) 
{ 
	ulong pa; 
	uvlong *pte; 
 
	sgmap = xspanalloc(BY2PG, BY2PG, 0); 
	memset(sgmap, 0, BY2PG); 
 
	pte = sgmap; 
	for(pa = 0; pa < 8*1024*1024; pa += BY2PG) 
		*pte++ = ((pa>>PGSHIFT)<<1)|1; 
 
	wind[0x400/4] = ISAWINDOW|2; 
	wind[0x440/4] = 0x00700000; 
	wind[0x480/4] = PADDR(sgmap); 
} 
 
1999/0415    
static void * 
kmapio(ulong space, ulong offset, int size) 
{ 
1999/0423/sys/src/9/alphapc/arch164.c:54,701999/0424/sys/src/9/alphapc/arch164.c:74,91
1999/0415    
	} 
	coresave[0] = core[0x140/4]; 
 
1999/0423    
#ifdef notdef 
1999/0424    
	/* disable windows */ 
	wind[0x400/4] = 0; 
	wind[0x500/4] = 0; 
	wind[0x600/4] = 0; 
	wind[0x700/4] = 0; 
 
1999/0423    
	/* direct map bottom 1G PCI target space to KZERO in window 1 */ 
	wind[0x500/4] = PCIWINDOW|1; 
	wind[0x540/4] = 0x3ff00000; 
1999/0415    
	wind[0x580/4] = 0; 
 
	/* disable other windows */ 
	wind[0x400/4] = 0; 
	wind[0x600/4] = 0; 
	wind[0x700/4] = 0; 
1999/0423    
#endif /* notdef */ 
1999/0424    
sginit(); 
1999/0415    
 
	/* clear error state */ 
	core[0x8200/4] = 0x7ff; 


source code copyright © 1990-2005 Lucent Technologies; see license
Plan 9 distribution
comments to russ cox (rsc@swtch.com)