port to MIPS target architecture from Nick Rees

This commit is contained in:
Janet B. Anderson
1998-04-24 16:28:07 +00:00
parent 1fc6f092bd
commit 15b6c1db6d
2 changed files with 25 additions and 0 deletions
+1
View File
@@ -4,6 +4,7 @@ include $(TOP)/config/CONFIG_BASE
SRCS.c = ../iocLogClient.c ../veclist.c ../ldpp.c
LIBOBJS = veclist.o iocLogClient.o ldpp.o
LIBOBJS_mips = symFindByNameMips.o
LIBNAME = vxComLib
SCRIPTS = vxldscript.MRI
+24
View File
@@ -0,0 +1,24 @@
/*
* This file is included in to change the VxWorks function symFindByName().
* On the MIPS processor, all symbols do not have the prepended underscore.
* Here we redefine symFindByName to look at the second character of the
* name string.
*
* 01a,08apr97,bdg created.
* 02a,03apr97,npr changed from mips.h into symFindByNameMips.c
*/
#ifdef symFindByName
#undef symFindByName
#endif
#include "vxWorks.h"
#include "symLib.h"
STATUS symFindByNameMips( SYMTAB_ID symTblId,
char *name,
char **pvalue,
SYM_TYPE *pType )
{
return symFindByName(symTblId, (name+1), pvalue, pType );
}