Emerson PME1 Network Router User Manual


 
Monitor: MPC860P-Specific Functions
10002367-02 PmT1 and PmE1 User’s Manual
8-33
The Cnt indicates the byte location to be modified and assumes the nonvolatile memory is a
linear array of memory locations. If there are gaps between bytes on the physical device,
they are dealt with here. The last parameter Val is a pointer to the character location to be
written.
This function returns the number of bytes written to the device or the value read from the
device, depending on Mode. Only bytes that differ are written.
SetUnExpIntFunct
SetUnExpIntFunct(Funct)
unsigned long Funct;
Description: If desired, a program can call the SetUnExpIntFunct function to attach its own interrupt
handler to all unexpected interrupts. This function attaches the handler specified by Funct.
The new interrupt handler must determine the source of the unexpected interrupt and
remove it.
MPC860P-SPECIFIC FUNCTIONS
Cache
disable_dcache
disable_icache
enable_dcache
enable_icache
invalidate_dcache
invalidate_icache
Description: As the names indicate, these functions enable, disable, and flush the data and instruction
caches. The enable_dcache function enables the data cache in either copyback or write-
through mode. If mode is zero, copyback mode is selected. If mode is one, write-through
mode is selected. The invalidate_dcache function flushes all data cache lines and the
invalidate_icache function flushes all instruction cache lines.
Exceptions
VecInit(void)
typedef unsigned long VECTORNUM;
typedef void *HANDLERPARM;
typedef void (*HANDLER)(VECTORNUM, ...); /* up to one (1)
optional parameter */