#include "vxWorks.h"
#include "stdio.h"
#include "string.h"
#include "intLib.h"
#include "vxLib.h"
#include "iv.h"
#include "ctype.h"
#include "sysSymTbl.h"
Go to the source code of this file.
|
int | veclist (int) |
|
int | cISRTest (FUNCPTR proutine, FUNCPTR *ppisr, void **pparam) |
|
#define ISR_PATTERN 0xaaaaaaaa |
#define PARAM_PATTERN 0x55555555 |
int cISRTest |
( |
FUNCPTR |
proutine, |
|
|
FUNCPTR * |
ppisr, |
|
|
void ** |
pparam |
|
) |
| |
Definition at line 121 of file veclist.c.
123 static FUNCPTR handler =
NULL;
132 #if CPU_FAMILY != PPC 133 handler = (FUNCPTR) intHandlerCreate(
144 pchk = (
unsigned char *) proutine;
145 pref = (
unsigned char *) handler;
161 *ppisr = (FUNCPTR) fetch_pointer(pchk);
162 pref +=
sizeof(*ppisr)-1;
163 pchk +=
sizeof(*ppisr)-1;
167 *pparam = fetch_pointer(pchk);
168 pref +=
sizeof(*pparam)-1;
169 pchk +=
sizeof(*pparam)-1;
Definition at line 47 of file veclist.c.
52 char name[MAX_SYS_SYM_LEN];
53 char function_type[10];
61 for(vec=0; vec<
NVEC; vec++){
62 proutine = intVecGet((FUNCPTR *)INUM_TO_IVEC(vec));
64 status =
cISRTest(proutine, &pCISR, &pparam);
68 strcpy(function_type,
"C");
72 strcpy(function_type,
"MACRO");
76 status = symFindByValue(
82 if(status<0 || value != (
int)proutine){
83 sprintf(name,
"0x%X", (
unsigned int) proutine);
89 if(!strcmp(ignore_list[i],name)){
98 printf(
"vec 0x%02X %5s ISR %s",
103 printf(
"(0x%X)", (
unsigned int) pparam);
pvd::StructureConstPtr type
int cISRTest(FUNCPTR proutine, FUNCPTR *ppisr, void **pparam)