summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/i960/rxgen960/startup/systbl.h
blob: a69865a86b39854e474ef3ec6f96397d17a8e63e (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
/*-------------------------------------*/
/* systbl.h                            */
/* Last change : 14.10.94              */
/*-------------------------------------*/
#ifndef _SYSTBL_H_
#define _SYSTBL_H_

  /* System Procedure.
   */
typedef void (* SysProc)(void);   
  /* System Procedures Table.
   */
typedef struct {
  unsigned int reserved[3];		/* Reserved */
  unsigned int * svrStackPtr;           /* Supervisor Stack Pointer Base */
  unsigned int preserved[8];		/* Preserved */ 
  SysProc sysProc[259];      		/* System Procedures Entry Points */
} SystemTbl;
  /* Type of System Procedure.
   */
#define LOCAL_SP	0x0
#define SUPERVISOR_SP	0x2  
  /* Cinvert to System Procedure Type.
   */
#define SP(addr)	((SysProc) (addr))    
  /* System Procedures Table Itself.
   */
extern SystemTbl systemTbl;

#endif   
/*-------------*/
/* End of file */
/*-------------*/