source: rtems/c/src/lib/libbsp/i960/rxgen960/startup/prcb.c @ 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.c                              */
3/* Last change : 11.10.94              */
4/*-------------------------------------*/
5/*
6 *  $Id$
7 */
8
9#include "flttbl.h"
10#include "cntrltbl.h"
11#include "intrtbl.h"
12#include "systbl.h"
13#include "prcb.h"
14/*-------------------------------------*/
15  /* RAM based PRocess Control Block 
16   */     
17#ifdef DBPRECISE_FAULTS
18#define AC                      (INT_OVFL_DISABLE | PRECISE_FLTS)
19#else
20#define AC                      (INT_OVFL_DISABLE | IMPRECISE_FLTS)
21#endif
22
23 /* Initial Fault Configuration Word Image.
24   * As to this 1, I don't know why but without it
25   * fault hanlder wouldn't be invoked.
26   */
27#define FAULT_CONFIG            (UNLGND_FAULT_DISABLE | 1)
28
29  /* Initial Instruction Cache Configuration Word Image.
30   */
31#ifdef DBCACHE_OFF
32#define INST_CACHE_CONFIG       (INST_CACHE_DISABLE)
33#else
34#define INST_CACHE_CONFIG       (INST_CACHE_ENABLE)
35#endif
36
37  /* Initial Register Cache Configuration Word Image.
38   */
39#define REG_CACHE_CONFIG        0x000
40
41
42struct PRCB ram_prcb = {
43  & faultTbl[0],                        /* Fault Table Base */   
44  & controlTbl[0],                  /* Control Table Base */   
45  AC,                                   /* AC */
46  FAULT_CONFIG,                         /* Fault Configuration Word */
47  & interruptTbl,                       /* Interrupt Table Base */
48  & systemTbl,                          /* System Procedure Table Base */   
49  0,                                    /* Reserved */ 
50  & intStackPtr[0],                     /* Interrupt Stack Pointer */
51  INST_CACHE_CONFIG,                    /* Instruction Cache Config */
52  REG_CACHE_CONFIG,                     /* Reg Cache Config */
53}; 
54
55/*-------------*/
56/* End of file */
57/*-------------*/
58
Note: See TracBrowser for help on using the repository browser.