summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/i960/rxgen960/startup/rom_prcb.c
blob: 0f11c884d80b23c7f8c15a0490b2ea4dabfb2158 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/*-------------------------------------*/
/* prcb.c                              */
/* Last change : 11.10.94              */
/*-------------------------------------*/
/*
 *  $Id$
 */

#include "flttbl.h"
#include "cntrltbl.h"
#include "intrtbl.h"
#include "systbl.h"
#include "prcb.h"
/*-------------------------------------*/
  /* RAM based PRocess Control Block
   */
#ifdef DBPRECISE_FAULTS
#define AC                      (INT_OVFL_DISABLE | PRECISE_FLTS)
#else
#define AC                      (INT_OVFL_DISABLE | IMPRECISE_FLTS)
#endif

 /* Initial Fault Configuration Word Image.
   * As to this 1, I don't know why but without it
   * fault hanlder wouldn't be invoked.
   */
#define FAULT_CONFIG            (UNLGND_FAULT_DISABLE | 1)
extern SystemTbl nulsystemTbl;

  /* Initial Instruction Cache Configuration Word Image.
   */
#ifdef DBCACHE_OFF
#define INST_CACHE_CONFIG       (INST_CACHE_DISABLE)
#else
#define INST_CACHE_CONFIG       (INST_CACHE_ENABLE)
#endif

  /* Initial Register Cache Configuration Word Image.
   */
#define REG_CACHE_CONFIG        0x200


struct PRCB rom_prcb = {
  & faultTbl[0],                        /* Fault Table Base */
  & rom_controlTbl[0],                  /* Control Table Base */
  AC,                                   /* AC */
  FAULT_CONFIG,                         /* Fault Configuration Word */
  & interruptTbl,                       /* Interrupt Table Base */
  & nulsystemTbl,                       /* System Procedure Table Base */
  0,                                    /* Reserved */
  & intStackPtr[0],                     /* Interrupt Stack Pointer */
  INST_CACHE_CONFIG,                    /* Instruction Cache Config */
  REG_CACHE_CONFIG,                     /* Reg Cache Config */
};

/*-------------*/
/* End of file */
/*-------------*/