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

/projects/cubeos/src_current/kernel/context.h

Go to the documentation of this file.
00001 /*  src_experimental/kernel/context.h
00002     CubeOS Version 0.4.90 experimental
00003     Copyright (C) 1999,2000 Holger Kenn
00004 
00005     CubeOS is free software; you can redistribute it and/or
00006     modify it under the terms of the GNU Library General Public
00007     License as published by the Free Software Foundation; either
00008     version 2 of the License, or any later version.
00009 
00010     CubeOS is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013     Library General Public License for more details.
00014 
00015 */  
00016 /* This defines a context for a process or thread */
00017 /* It's simply a block for the context switch to store data */
00018 #ifndef CONTEXT_H
00019 #define CONTEXT_H
00020 
00024 #define PNREGS  19
00025 
00026 #define POS_D0 0
00027 #define POS_D1 1
00028 #define POS_D2 2
00029 #define POS_D3 3
00030 #define POS_D4 4
00031 #define POS_D5 5
00032 #define POS_D6 6
00033 #define POS_D7 7
00034 #define POS_A0 8
00035 #define POS_A1 9
00036 #define POS_A2 10
00037 #define POS_A3 11
00038 #define POS_A4 12
00039 #define POS_A5 13
00040 #define POS_A6 14
00041 #define POS_SSP 15
00042 #define POS_SR 16
00043 #define POS_PC 17
00044 
00045 
00046 typedef struct regs *regptr;
00047 
00052 typedef struct regs {
00053         long regs[PNREGS];
00054 } reglist;
00055 
00065 void KERN_contextsw(regptr oldarea,regptr newarea);
00066 
00067 
00068 #endif

Generated on Thu Feb 20 15:38:44 2003 for cubeOS by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002