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

1991/0613/pc/mmu.c (diff list | history)

1991/0612/sys/src/9/pc/mmu.c:5,131991/0613/sys/src/9/pc/mmu.c:5,20 (short | long | prev | next)
1991/0612    
#include	"fns.h" 
#include	"io.h" 
 
                 
                 
void 
mapstack(Proc *p) 
1991/0613    
/* 
 *  global descriptor table describing all segments 
 */ 
Segdesc gdt[1024] = 
1991/0612    
{ 
} 
1991/0613    
[NULLSEG]	{ 0, 0},		/* null descriptor */ 
[KESEG]		EXECSEG(0),		/* kernel code */ 
[KDSEG]		DATASEG(0),		/* kernel data/stack */ 
[UESEG]		EXECSEG(3),		/* user code */ 
[UDSEG]		DATASEG(3),		/* user data/stack */ 
[SYSGATE]	CALLGATE(KESEG, syscall, 3),	/* call gate for system calls */ 
		{ 0, 0},		/* the rest */ 
}; 


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