diff --git a/src/libvxWorks/veclist.c b/src/libvxWorks/veclist.c new file mode 100644 index 000000000..acc28fd2f --- /dev/null +++ b/src/libvxWorks/veclist.c @@ -0,0 +1,225 @@ +/* + * $Id$ + * + * list fuctions attached to the interrupt vector table + * + * Created 28Mar89 Jeffrey O. Hill + * hill@atdiv.lanl.gov + * (505) 665 1831 + * + */ + +/* + * + * makefile + * + * + * V5VW = /.../vx/v502b + * V4VW = /.../vx/v402 + * + * veclist.o: + * cc68k -c -DV5_vxWorks -DCPU_FAMILY=MC680X0 -I$(V5VW)/h veclist.c + * + * veclistV4.o: veclist.c + * cc68k -c -DV4_vxWorks -I$(V4VW)/h veclist.c -o veclistV4.o + * + */ + +#include "vxWorks.h" +#include "a_out.h" +#if defined(V4_vxWorks) +# include "iv68k.h" +#elif defined(V5_vxWorks) +# include "iv.h" +#else +# include "iv68k.h" +#endif +#include "ctype.h" +#include "sysSymTbl.h" + +static char *sccsID = + "$Id$\t$Date$ written by Jeffrey O. Hill hill@atdiv.lanl.gov"; + +/* + * + * VME bus dependent + * + */ +#define NVEC 0x100 + +static char *ignore_list[] = {"_excStub","_excIntStub"}; + +int veclist(int); +int cISRTest(void (*)(), void (**)(), void **); +void *fetch_pointer(unsigned char *); + + +/* + * + * veclist() + * + */ +veclist(all) +int all; +{ + int vec; + int value; +#if defined(V4_vxWorks) + UTINY type; +#else + SYM_TYPE type; +#endif + char name[MAX_SYS_SYM_LEN]; + char function_type[10]; + void (*proutine)(); + void (*pCISR)(); + void *pparam; + int status; + int i; + + for(vec=0; vec