#! /bin/sh # This is a shell archive. Remove anything before this line, then unpack # it by saving it into a file and typing "sh file". To overwrite existing # files, type "sh file -c". You can also feed this as standard input via # unshar, or by typing "sh 'veclist/veclist.c' <<'END_OF_FILE' X/* X * @(#)veclist.c 1.10 X * X * list fuctions attached to the interrupt vector table X * X * Created 28Mar89 Jeffrey O. Hill X * hill@atdiv.lanl.gov X * (505) 665 1831 X * X * .01 010393 Applied fix for zero C ISR param causes incorrect X * identification as MACRO ISR problem. X */ X X/* X * X * makefile X * X * X * V5VW = /.../vx/v502b X * X * veclist.o: X * cc68k -c -DCPU_FAMILY=MC680X0 -I$(V5VW)/h veclist.c X * X * X */ X X#include "vxWorks.h" X#include "stdio.h" X#include "intLib.h" X#include "vxLib.h" X#include "iv.h" X#include "ctype.h" X#include "sysSymTbl.h" X Xstatic char *sccsID = X "@(#)veclist.c 1.10\t1/3/94 J. Hill hill@atdiv.lanl.gov"; X X/* X * X * VME bus dependent X * X */ X#define NVEC 0x100 X Xstatic char *ignore_list[] = {"_excStub","_excIntStub"}; X Xint veclist(int); Xint cISRTest(FUNCPTR proutine, FUNCPTR *ppisr, void **pparam); Xstatic void *fetch_pointer(unsigned char *); X X X/* X * X * veclist() X * X */ Xint veclist(int all) X{ X int vec; X int value; X SYM_TYPE type; X char name[MAX_SYS_SYM_LEN]; X char function_type[10]; X FUNCPTR proutine; X FUNCPTR pCISR; X int cRoutine; X void *pparam; X int status; X int i; X X for(vec=0; vec