ivSimsolaris.h
资源名称:ixp425BSP.rar [点击查看]
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:1k
源码类别:
VxWorks
开发平台:
C/C++
- /* ivSimsparc.h - simsparc interrupt vectors */
- /* Copyright 1993-1995 Wind River Systems, Inc. */
- /*
- modification history
- --------------------
- 01b,13feb97,pr changed the iv number which were different from the sparc.
- 01a,07jun95,ism derived from simsparc
- */
- #ifndef __INCivSimsparch
- #define __INCivSimsparch
- #ifdef __cplusplus
- extern "C" {
- #endif
- /* macros to convert interrupt vectors <-> interrupt numbers */
- #define IVEC_TO_INUM(intVec) ((int) (intVec))
- #define INUM_TO_IVEC(intNum) ((VOIDFUNCPTR *) (intNum))
- #define IVEC_TO_FD(intVec) (IVEC_TO_INUM(intVec) - 32)
- #define FD_TO_IVEC(fd) (INUM_TO_IVEC((fd) + 32))
- /* interrupt vector definitions */
- #define IV_HUP INUM_TO_IVEC (1)
- #define IV_INT INUM_TO_IVEC (2)
- #define IV_ILL INUM_TO_IVEC (4)
- #define IV_TRAP INUM_TO_IVEC (5)
- #define IV_FPE INUM_TO_IVEC (8)
- #define IV_BUS INUM_TO_IVEC (10)
- #define IV_SEGV INUM_TO_IVEC (11)
- #define IV_CLOCK1 INUM_TO_IVEC (14)
- #define IV_USR1 INUM_TO_IVEC (16)
- #define IV_USR2 INUM_TO_IVEC (17)
- #define IV_IO INUM_TO_IVEC (22)
- #define IV_CLOCK2 INUM_TO_IVEC (28)
- #define IV_CLOCK3 INUM_TO_IVEC (29)
- /* XXX */
- #define TRAP_0_DIVIDE 2 /* trap 2 - SPARC zero divide */
- #ifdef __cplusplus
- }
- #endif
- #endif /* __INCivSimsparch */