PBS.h.vx-xxx-xxx File Reference
PBS library, VXWORKS platform interface/macro implementation for PBS.
More...
#include <taskLib.h>
#include <intLib.h>
#include <BootDiagnostics.h>
Detailed Description
PBS library, VXWORKS platform interface/macro implementation for PBS.
- Author:
- JJRussell - russell@slac.stanford.edu
CVS $Id: PBS.h.vx-xxx-xxx,v 1.4 2011/03/24 23:05:45 apw Exp $
Define Documentation
#define PBS_LOCK |
( |
|
) |
intLock () |
On this supported platform, locks the interrupts up.
- Returns:
- A key used to unlock the interrupts
This macro is meant to be used to stop activity prior to calling PBS_crash. PBS_lock is the first thing that PBS_crash does, so the user should call PBS_lock if and only if he feels that waiting till PBS_crash is called could cause problems.
- Warning:
- PBS_LOCK() is not meant to provide anything resembling locking interrupts on unsupported platforms. It is there simple as portability aid. No non-PPC code should depend on these routines to function correctly. The astute reader will notice that there is no PBS_UNLOCK. Since this functionality is only used when calling PBS_crash(), there is no need to for a PBS_UNLOCK().
Referenced by PBS_crash(), PBS_panic(), and PBS_reboot().
#define PBS_TID |
( |
|
) |
intContext () ? 0 : taskIdSelf () |
Returns the id of the current task.
- Returns:
- ID of the current task, or 0 if at interrupt level
This macro is meant to be used to fill the TID field of PBS_crashCtx.
Typedef Documentation
Typedef for enum.
- See also:
- _PBS_crashType
The following codes are provide for compatibility reasons only
- PBS_CRASH_TYPE_COLD
- PBS_CRASH_TYPE_WATCHDOG
- PBS_CRASH_TYPE_EXCEPTION, if we are ambitious, could make this work
The following codes are interesting in a MVxxxx environment
- PBS_CRASH_TYPE_VXWORKS, internally generated by VxWorks
- PBS_CRASH_TYPE_PANIC, generally from BUG_check
- PBS_CRACH_TYPE_COMMAND, generally by command request
Enumeration Type Documentation
Enumerates all the reasons the system may be crashed.
- Enumerator:
-
PBS_CRASH_TYPE_VXWORKS |
Boot VxWorks start type, issued internally by VXWORKS, provided for reference, compatiability and testing reasons only |
PBS_CRASH_TYPE_COLD |
Boot cold start boot type, being start by a cold reset provided for reference, compatiability and testing reasons only |
PBS_CRASH_TYPE_WATCHDOG |
Boot watchdog start boot type, being started by a watchdog reset provided for reference, compatiability and testing reasons only |
PBS_CRASH_TYPE_PANIC |
Boot panic start boot type, typically a software inconsistancy, generally issued as a result of a call to BUG_check |
PBS_CRASH_TYPE_EXCEPTION |
Boot exception start boot type, being started as the result of an exception handler, provided for reference, compatiability and testing reasons only |
PBS_CRASH_TYPE_COMMAND |
Boot commanded start boot type, being started as the result of an issued command |