Main Page   Modules   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

ktInit Struct Reference

structure used for extra parameters. More...

#include <thread.h>

Collaboration diagram for ktInit:

Collaboration graph
[legend]
List of all members.

Public Attributes

word datasel
 data segment. Default is kProcess.defData

word codesel
 code segment. Default is kProcess.defCode

moObjectstack
 explicit stack object.

int stacksize
 virtual size for the main stack.

int minsize
 physical size for the stack

int glocalsize
 how much space should be reserved for user-level glocals

byte level
 DEPRECATED.


Detailed Description

structure used for extra parameters.

only the fields which flag is set are interpreted.


Member Data Documentation

word ktInit::codesel
 

code segment. Default is kProcess.defCode

note that we don't trust the RPL part of these selectors: they'll be overridden with the detected priviledge level.

word ktInit::datasel
 

data segment. Default is kProcess.defData

int ktInit::glocalsize
 

how much space should be reserved for user-level glocals

byte ktInit::level
 

DEPRECATED.

int ktInit::minsize
 

physical size for the stack

define the amount of physical memory to be given to the stack (expressed in amount of 4K pages). depending on the memory class used, the rest of the stack will be in auto-allocation mode. Note that auto-allocation can't be used for kernel stacks.

Default is to allocate physical memory for the whole stack.

struct moObject* ktInit::stack
 

explicit stack object.

we won't use the STAK memory class to create the main stack, but directly use that stack object. If this parameter is given, then stacksize and minsize are useless.

int ktInit::stacksize
 

virtual size for the main stack.

defines the address range's width to be allocated for the stack. if not provided, we'll use a heuristic size depending on the level : DPL0 thread get a 8K stack, DPL1 thread get a 16K stack and other thread get a 64K stack


The documentation for this struct was generated from the following file:
Generated on Mon Jul 14 17:01:00 2003 for Clicker32Kernel by doxygen1.2.18