diag − diagnostic script execution program [ catalog ] is an example of a standalone program written with the standalone library. reads a of standalone programs to be run, and executes each of the programs listed with the arguments indicated in the catalog. is used at MIPS to run a series of diagnostics, hence the name is normally placed in the home directory on some UMIPS-BSD server. Standalone systems attached to an ethernet may then run with the prom monitor command:
boot -f bfs()diag catalog_file Once running, prepends "bfs()" before the catalog_file and reads this file via the ethernet and If catalog_file is not specified, the file "bfs()catalog" is read. should be a list of commands and their arguments. Each command in the list is prepended with "bfs()" and then booted with the arguments that appear on in the catalog_file. An example catalog might be:
test1 arg1
test2 arg2
Given this catalog file would first boot "bfs()test1" with the argument "arg1", after test1 completes would the boot "bfs()test2" with the argument "arg2". must not be overlayed by the programs it loads, since these programs return control to At MIPS, we load #define PCATCH 0400 #define PSWP 0 #define PINOD 10 #define PRIBIO 20 #define PZERO 25 #d