Page 1 of 1

SB-2: Salvo: Multiple Call Graph Errors under HI-TECH PIC C

PostPosted: Fri Dec 22, 2000 10:48 am
by Salvo Tech Support
Applies To

Salvo v2.1 full version.

Description of Problem

When using

code:
#define OSCALL_OSSIGNALXYZ OSFROM_ANYWHERE

in salvocfg.h to configure event signaling services to be called from both mainline and interrupt code, the PIC C compiler responds with one or more of the following errors:

Error[ ] file : function _OSSignalXyz appears in multiple call graphs: rooted at intlevel0 and _main

Suggested Workaround

For each Salvo service listed in the error output, add the following lines to the source code, immediately prior to the function definition:

code:
#if OSCOMPILER == OSHT_PICC && OSCALL_OSSIGNALXYZ == OSFROM_ANYWHERE
#pragma interrupt_level 0
#endif

where XYZ is replaced with BINSEM/SEM/MSG/MSGQ. The #if statement can be extended as required when multiple signaling services are configured to OSFROM_ANYWHERE.

Fixed In

Salvo v2.2.0.

[This message has been edited by Salvo Tech Support (edited January 13, 2002).]