source: rtems/c/src/lib/libbsp/i960/rxgen960/startup/prcb.h @ c8f3e82

Last change on this file since c8f3e82 was 2ea8df3, checked in by Joel Sherrill <joel.sherrill@…>, on 10/27/99 at 16:27:34

Added CVS Ids and a basic header. More header cleanup needed.

  • Property mode set to 100644
File size: 1.8 KB
Line 
1/*-------------------------------------*/
2/* prcb.h                              */
3/* Last change :  11. 1.95              */
4/*-------------------------------------*/
5/*
6 *  $Id$
7 */
8
9#ifndef _PRCB_H_
10#define _PRCB_H_
11
12#include "flttbl.h"
13#include "cntrltbl.h"
14#include "intrtbl.h"
15#include "systbl.h"
16
17  /* PRocess Control Block 
18   */     
19struct PRCB {                       
20  FaultTblEntry * faultTbl;             /* Fault Table Base */   
21  ControlTblEntry * controlTbl;         /* Control Table Base */   
22  unsigned int arithConfig;             /* Arithmetic Control Register Image */
23  unsigned int faultConfig;             /* Fault Configuration Word Image */
24  InterruptTbl * interruptTbl;          /* Interrupt Table Base */
25  SystemTbl * systemTbl;                /* System Procedure Table Base */   
26  unsigned int reserved;                /* Reserved */ 
27  unsigned int * intStackPtr;           /* Interrupt Stack Pointer */
28  unsigned int instCacheConfig;         /* Instruction Cache Config */
29  unsigned int regCacheConfig;          /* Register Cache Config */
30};
31  /* Constants for Arithmetic Control Register.
32   */
33#define INT_OVFL_ENABLE         0
34#define INT_OVFL_DISABLE        0x1000
35
36#define PRECISE_FLTS            0x8000
37#define IMPRECISE_FLTS          0
38  /* Constants for Fault Configuration Word.
39   */
40#define UNLGND_FAULT_ENABLE     0
41#define UNLGND_FAULT_DISABLE    0x40000000
42  /* Constants for Instruction Cache Configuration Word.
43   */ 
44#define INST_CACHE_ENABLE       0
45#define INST_CACHE_DISABLE      0x10000
46  /* RAM-based Process Control Block.
47   */
48extern struct PRCB ram_prcb;
49extern struct PRCB rom_prcb;
50  /* Supervisor Stack. Is defined directly in rom.ld.
51   */
52extern unsigned int svrStackPtr[];
53  /* Interrupt Stack. Is defined directly in rom.ld.
54   */
55extern unsigned int intStackPtr[];
56
57#endif
58/*-------------*/
59/* End of file */
60/*-------------*/
61
Note: See TracBrowser for help on using the repository browser.