User`s manual

.DIAGFCN
5-83
5
if ( 4 < size < count )
write ‘count’ to ‘bufptr’ location in RAM
return -1;
if ( count <= size )
write ‘count’ to ‘bufptr’ location in RAM
write status report to ‘bufptr + sizeof(int)’ in RAM
return 0;
The result is returned in R03
03: .MEMSTAT (memory status)
This function implements a report mechanism for main memory
diagnostics. This report is always of a Þxed size, and can therefore
be called by higher level software that can not dynamically allocate
buffer space.
This function reports combined status for each of certain test
directories. This list includes RAM, MCECC, MEMC1, MEMC2,
and ECC.
In the case of RAM tests, they cover a range of memory, and
typically contain nothing that is board-speciÞc.
The MCECC and ECC tests do contain board-speciÞc code, and will
cover segments of memory, rather than a single range. In this case,
these tests will likely appear in the report multiple times, once for
each segment of memory.
Since the test is only ever run once, over all segments, the status
result will be identical for all reported instances. If one of the
segments covered does not contain an ECC type of memory board,
the results will contain a zero address range (beginning address =
ending address).
The MEMC1 and MEMC2 tests are on a per-board basis. These tests
are intended for the parity memory board, but contain one or more
tests that are also appropriate for the MCECC memory board. Each
test covers one segment of memory on the board under test.