OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [lib/] [libbsp/] [i960/] [rxgen960/] [startup/] [prcb.c] - Blame information for rev 30

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*-------------------------------------*/
2
/* prcb.c                              */
3
/* Last change : 11.10.94              */
4
/*-------------------------------------*/
5
/*
6
 *  $Id: prcb.c,v 1.2 2001-09-27 11:59:59 chris Exp $
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
 
42
struct 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
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.