8980 BIOS clock is sometimes one hour fast
[unleashed.git] / usr / src / man / man1m / monitor.1m
blobd5c58aa8c1c68b9b93851c432f706b465793eece
1 '\" te
2 .\" Copyright (c) 2003, Sun Microsystems, Inc.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH MONITOR 1M "Jul 24, 2003"
7 .SH NAME
8 monitor \- SPARC system PROM monitor
9 .SH SYNOPSIS
10 .LP
11 .nf
12 \fBSTOP\(miA\fR
13 .fi
15 .LP
16 .nf
17 \fBBREAK\fR
18 .fi
20 .LP
21 .nf
22 \fBinitial system power-on\fR
23 .fi
25 .LP
26 .nf
27 \fBexit from a client program, e.g., the Operating System\fR
28 .fi
30 .SH DESCRIPTION
31 .sp
32 .LP
33 The \fBCPU\fR board of a workstation contains one or more \fBEPROMs\fR or
34 \fBEEPROMs.\fR The program which executes from the \fBPROMs\fR is referred to
35 as "the monitor". Among other things, the monitor performs system
36 initialization at power-on and provides a user interface.
37 .SS "Monitor Prompt"
38 .sp
39 .LP
40 The monitor of earlier workstations was known as the \fBSunMON\fR monitor and
41 displayed the \fB>\fR for its prompt. See the \fBSunMON MONITOR USAGE\fR
42 section for further details.
43 .sp
44 .LP
45 Existing workstations use a monitor which is known as the OpenBoot monitor.
46 The OpenBoot monitor typically displays \fBok\fR as its prompt, but it may also
47 display the \fB>\fR prompt under certain circumstances.
48 .sp
49 .LP
50 If the \fB\&'auto-boot?'\fR \fBNVRAM\fR parameter is set to \fB\&'false'\fR
51 when the workstation is powered on, the system does not attempt to boot and the
52 monitor issues its prompt. If \fB\&'auto-boot'\fR is set to \fB\&'true'\fR, the
53 system initiates the boot sequence. The boot sequence can be aborted by
54 simultaneously pressing two keys on the system's keyboard: \fBL1\fR and \fBA\fR
55 (on older keyboards), or \fBStop\fR and \fBA\fR (on newer keyboards).  Either a
56 lower case \fBa\fR or an upper case \fBA\fR works for the keyboard abort
57 sequence.  If a console has been attached by way of one of the system's serial
58 ports then the abort sequence can be accomplished by sending a \fBBREAK\fR. See
59 \fBtip\fR(1).
60 .sp
61 .LP
62 When the \fBNVRAM\fR \fB\&'security-mode'\fR parameter has been turned on, or
63 when the value of the \fB\&'sunmon-compat?'\fR parameter is true, then the
64 OpenBoot monitor displays the message: \fBType b (boot), c (continue), or n
65 (new command mode)\fR
66 .sp
67 .LP
68 and the \fB>\fR prompt appears.
69 .SH OPENBOOT PROM USAGE
70 .sp
71 .LP
72 Some of the more useful commands that can be issued from OpenBoot's \fBok \fR
73 prompt are described here.  Refer to the   book for a complete list of
74 commands.
75 .SS "Help"
76 .sp
77 .LP
78 Help for various functional areas of the OpenBoot monitor can be obtained by
79 typing \fBhelp\fR. The help listing provides a number of other key words which
80 can then be used in the help command to provide further details.
81 .SS "NVRAM Parameters"
82 .sp
83 .LP
84 Each workstation contains one or more \fBNVRAM\fR devices which contains unique
85 system ID information, as well as a set of user-configurable parameters.  The
86 \fBNVRAM\fR parameters allow the user a certain level of flexibility in
87 configuring the system to act in a given manner under a specific set of
88 circumstances.
89 .sp
90 .LP
91 See \fBeeprom\fR(1M) for a description of the parameters and information
92 regarding setting the parameters from the OS level.
93 .sp
94 .LP
95 The following commands can be used at the OpenBoot monitor to access the
96 \fBNVRAM\fR parameters.
97 .sp
98 .ne 2
99 .na
100 \fB\fBprintenv\fR\fR
102 .RS 18n
103 Used to list the \fBNVRAM\fR parameters, along with their default values and
104 current values.
108 .ne 2
110 \fB\fBsetenv\fR\fI pn pv\fR\fR
112 .RS 18n
113 Used to set or modify a parameter.  The \fIpn\fR represents the parameter name,
114 and \fIpv\fR represents the parameter value.
118 .ne 2
120 \fB\fBset-default\fR \fIpn\fR\fR
122 .RS 18n
123 Used to set an individual parameter back to its default value.
127 .ne 2
129 \fB\fBset-defaults\fR\fR
131 .RS 18n
132 Used to reset all parameters to their default values.  (Note that
133 \fB\&'set-defaults'\fR only affects parameters that have assigned default
134 values.)
137 .SS "Security Parameters"
140 Newer OpenBoot monitors contain user interfaces that support the storage and
141 listing of keys for later use by client programs.
143 .ne 2
145 \fB\fBlist-security-keys\fR\fR
147 .sp .6
148 .RS 4n
149 Lists the names of keys currently stored on a machine.
153 .ne 2
155 \fB\fBset-security-key\fR \fIkeyname\fR [ \fIkeydata\fR ]\fR
157 .sp .6
158 .RS 4n
159 Stores key data \fIkeydata\fR in a key named \fIkeyname\fR. Actual key data can
160 be up to 32 bytes in length. The maximum length of \fIkeyname\fR is 64 bytes,
161 which allows for the hex-formatted ASCII used to present the key data. If
162 \fIkeydata\fR is not present, \fIkeyname\fR and its corresponding data is
163 deleted.
166 .SS "Hardware Checks and Diagnostics"
169 The following commands are available for testing or checking the system's
170 hardware.  If the \fB\&'diag-switch?'\fR \fBNVRAM\fR parameter is set to true
171 when the system is powered on, then a Power-On Self Test (POST) diagnostic is
172 run, if present, sending its results messages to the system's serial port A.
173 Not all of the commands shown are available on all workstations.
175 .ne 2
177 \fB\fBtest-all\fR\fR
179 .RS 17n
180 Run the diagnostic tests on each device which has provided a self-test.
184 .ne 2
186 \fB\fBtest\fR \fBfloppy\fR\fR
188 .RS 17n
189 Run diagnostics on the system's floppy device.
193 .ne 2
195 \fB\fBtest\fR \fB/memory\fR\fR
197 .RS 17n
198 Run the main memory tests.  If the \fBNVRAM\fR parameter \fB\&'diag-switch?'\fR
199 is set to true, then all of main memory is tested.  If the parameter is false
200 then only the amount of memory specified in the \fB\&'selftest-#megs'\fR
201 \fBNVRAM\fR parameter is tested.
205 .ne 2
207 \fB\fBtest\fR \fBnet\fR\fR
209 .RS 17n
210 Test the network connection for the on-board network controller.
214 .ne 2
216 \fB\fBwatch-net\fR\fR
218 .RS 17n
219 Monitor the network attached to the on-board net controller.
223 .ne 2
225 \fB\fBwatch-net-all\fR\fR
227 .RS 17n
228 Monitor the network attached to the on-board net controller, as well as the
229 network controllers installed in SBus slots.
233 .ne 2
235 \fB\fBwatch-clock\fR\fR
237 .RS 17n
238 Test the system's clock function.
241 .SS "System Information"
244 The following commands are available for displaying information about the
245 system.  Not all commands are available on all workstations.
247 .ne 2
249 \fB\fBbanner\fR\fR
251 .RS 18n
252 Display the power-on banner.
256 .ne 2
258 \fB\fB\&.enet-addr\fR\fR
260 .RS 18n
261 Display the system's Ethernet address.
265 .ne 2
267 \fB\fB\&.idprom\fR\fR
269 .RS 18n
270 Display the formatted contents of the \fBIDPROM.\fR
274 .ne 2
276 \fB\fBmodule-info\fR\fR
278 .RS 18n
279 Display information about the system's processor(s).
283 .ne 2
285 \fB\fBprobe-scsi\fR\fR
287 .RS 18n
288 Identify the devices attached to the on-board \fBSCSI\fR controller.
292 .ne 2
294 \fB\fBprobe-scsi-all\fR\fR
296 .RS 18n
297 Identify the devices attached to the on-board \fBSCSI\fR controller as well as
298 those devices which are attached to SBus \fBSCSI\fR controllers.
302 .ne 2
304 \fB\fBshow-disks\fR\fR
306 .RS 18n
307 Display a list of the device paths for installed \fBSCSI\fR disk controllers.
311 .ne 2
313 \fB\fBshow-displays\fR\fR
315 .RS 18n
316 Display a list of the device paths for installed display devices.
320 .ne 2
322 \fB\fBshow-nets\fR\fR
324 .RS 18n
325 Display a list of the device paths for installed Ethernet controllers.
329 .ne 2
331 \fB\fBshow-sbus\fR\fR
333 .RS 18n
334 Display list of installed SBus devices.
338 .ne 2
340 \fB\fBshow-tapes\fR\fR
342 .RS 18n
343 Display a list of the device paths for installed \fBSCSI\fR tape controllers.
347 .ne 2
349 \fB\fBshow-ttys\fR\fR
351 .RS 18n
352 Display a list of the device paths for tty devices.
356 .ne 2
358 \fB\fB\&.traps\fR\fR
360 .RS 18n
361 Display a list of the SPARC trap types.
365 .ne 2
367 \fB\fB\&.version\fR\fR
369 .RS 18n
370 Display the version and date of the OpenBoot PROM.
373 .SS "Emergency Commands"
376 These commands must be typed from the keyboard, they do not work from a console
377 which is attached by way of the serial ports.  With the exception of the
378 \fBStop-A\fR command, these commands are issued by pressing and holding down
379 the indicated keys on the keyboard immediately after the system has been
380 powered on.  The keys must be held down until the monitor has checked their
381 status.  The \fBStop-A\fR command can be issued at any time after the console
382 display begins, and the keys do not need to be held down once they've been
383 pressed. The \fBStop-D,\fR \fBStop-F\fR and \fBStop-N\fR commands are not
384 allowed when one of the security modes has been set.  Not all commands are
385 available on all workstations.
387 .ne 2
389 \fB\fBStop (L1)\fR\fR
391 .RS 17n
392 Bypass the Power-On Self Test (POST).  This is only effective if the system has
393 been placed into the diagnostic mode.
397 .ne 2
399 \fB\fBStop-A (L1-A)\fR\fR
401 .RS 17n
402 Abort the current operation and return to the monitor's default prompt.
406 .ne 2
408 \fB\fBStop-D (L1-D)\fR\fR
410 .RS 17n
411 Set the system's \fB\&'diag-switch?'\fR \fBNVRAM\fR parameter to
412 \fB\&'true'\fR, which places the system in diagnostic mode.  POST diagnostics,
413 if present, are run, and the messages are displayed by way of the system's
414 serial port A.
418 .ne 2
420 \fB\fBStop-F (L1-F)\fR\fR
422 .RS 17n
423 Enter the OpenBoot monitor before the monitor has probed the system for
424 devices.  Issue the \fB\&'fexit'\fR command to continue with system
425 initialization.
429 .ne 2
431 \fB\fBStop-N (L1-N)\fR\fR
433 .RS 17n
434 Causes the \fBNVRAM\fR parameters to be reset to their default values.  Note
435 that not all parameters have default values.
438 .SS "Line Editor Commands"
441 The following commands can be used while the monitor is displaying the \fBok\fR
442 prompt.  Not all of these editing commands are available on all workstations.
444 .ne 2
446 \fB\fBCTRL-A\fR\fR
448 .RS 10n
449 Place the cursor at the start of line.
453 .ne 2
455 \fB\fBCTRL-B\fR\fR
457 .RS 10n
458 Move the cursor backward one character.
462 .ne 2
464 \fB\fBESC-B\fR\fR
466 .RS 10n
467 Move the cursor backward one word.
471 .ne 2
473 \fB\fBCTRL-D\fR\fR
475 .RS 10n
476 Erase the character that the cursor is currently highlighting.
480 .ne 2
482 \fB\fBESC-D\fR\fR
484 .RS 10n
485 Erase the portion of word from the cursor's present position to the end of the
486 word.
490 .ne 2
492 \fB\fBCTRL-E\fR\fR
494 .RS 10n
495 Place the cursor at the end of line.
499 .ne 2
501 \fB\fBCTRL-F\fR\fR
503 .RS 10n
504 Move the cursor forward one character.
508 .ne 2
510 \fB\fBESC-F\fR\fR
512 .RS 10n
513 Move the cursor forward one word.
517 .ne 2
519 \fB\fBCTRL-H\fR\fR
521 .RS 10n
522 Erase the character preceding the cursor (also use Delete or Back Space)
526 .ne 2
528 \fB\fBESC-H\fR\fR
530 .RS 10n
531 Erase the portion of the word which precedes the cursor (use also \fBCTRL-W)\fR
535 .ne 2
537 \fB\fBCTRL-K\fR\fR
539 .RS 10n
540 Erase from the cursor's present position to the end of the line.
544 .ne 2
546 \fB\fBCTRL-L\fR\fR
548 .RS 10n
549 Show the command history list.
553 .ne 2
555 \fB\fBCTRL-N\fR\fR
557 .RS 10n
558 Recall the next command from the command history list
562 .ne 2
564 \fB\fBCTRL-P\fR\fR
566 .RS 10n
567 Recall a previous command from the command history list.
571 .ne 2
573 \fB\fBCTRL-Q\fR\fR
575 .RS 10n
576 Quote the next character (used to type a control character).
580 .ne 2
582 \fB\fBCTRL-R\fR\fR
584 .RS 10n
585 Retype the current line.
589 .ne 2
591 \fB\fBCTRL-U\fR\fR
593 .RS 10n
594 Erase from the cursor's present position to the beginning of the line.
598 .ne 2
600 \fB\fBCTRL-Y\fR\fR
602 .RS 10n
603 Insert the contents of the memory buffer into the line, in front (to the left)
604 of the cursor.
607 .SS "nvramrc"
610 The \fBnvramrc\fR is an area of the system's \fBNVRAM\fR where users may store
611 Forth programs. The programs which are stored in the \fBnvramrc\fR are executed
612 each time the system is reset, provided that the \fB\&'use-nvramrc?'\fR
613 \fBNVRAM\fR parameter has been set to \fB\&'true'\fR. Refer to the book for
614 information on how to edit and use the \fBnvramrc\fR.
615 .SS "Restricted Monitor"
618 The command \fB\&'old-mode'\fR is used to move OpenBoot into a restricted
619 monitor mode, causing the \fB> \fR prompt to be displayed.  Only three commands
620 are allowed while in the restricted monitor; the \fB\&'go'\fR command (to
621 resume a program which was interrupted with the \fBStop-A\fR command), the
622 \fB\&'n'\fR command (to return to the normal OpenBoot monitor), and boot
623 commands.  The restricted monitor's boot commands approximate the older
624 \fBSunMON\fR monitor's boot command syntax. If a \fB\&'security-mode'\fR has
625 been turned on then the restricted monitor becomes the default monitor
626 environment.  The restricted monitor may also become the default environment if
627 the \fB\&'sunmon-compat?' \fR \fBNVRAM\fR parameter is set to true.  Not all
628 workstations have the \fB\&'sunmon-compat?'\fR parameter.
629 .SH SUNMON PROM USAGE
632 The following commands are available systems with older  \fBSunMON\fR-based
633 PROM:
635 .ne 2
637 \fB\fB+\fR|\fB\(mi\fR\fR
639 .sp .6
640 .RS 4n
641 Increment or decrement the current address and display the contents of the new
642 location.
646 .ne 2
648 \fB\fB^C\fR\fI source destination n\fR\fR
650 .sp .6
651 .RS 4n
652 (caret-C) Copy, byte-by-byte, a block of length \fIn\fR from the \fBsource\fR
653 address to the \fIdestination\fR address.
657 .ne 2
659 \fB\fB^I \fR\fIprogram\fR\fR
661 .sp .6
662 .RS 4n
663 (caret-I) Display the compilation date and location of \fIprogram\fR.
667 .ne 2
669 \fB\fB^T \fR\fIvirtual_address\fR\fR
671 .sp .6
672 .RS 4n
673 (caret-T) Display the physical address to which \fIvirtual_address\fR is
674 mapped.
678 .ne 2
680 \fB\fBb\fR [ \fB!\fR ] [ \fIdevice\fR [
681 \fB(\fR\fIc\fR\fB,\fR\fIu\fR\fB,\fR\fIp\|\fR\fB)\fR\fI\fR ] ] [ \fIpathname\fR
682 ] [ \fIarguments_list\fR ]\fR
684 .sp .6
685 .RS 4n
690 .ne 2
692 \fB\fBb\fR[\fB?\fR]\fR
694 .sp .6
695 .RS 4n
696 Reset appropriate parts of the system and bootstrap a program.  A `\fB!\fR'
697 (preceding the \fIdevice\fR argument) prevents the system reset from occurring.
698 Programs can be loaded from various devices (such as a disk, tape, or
699 Ethernet). `\fBb\fR' with no arguments causes a default boot, either from a
700 disk, or from an Ethernet controller. `\fBb?\fR' displays all boot devices and
701 their \fIdevice\fRs.
703 .ne 2
705 \fB\fIdevice\fR\fR
707 .RS 18n
708 one of
710 .ne 2
712 \fB\fBle\fR\fR
714 .RS 6n
715 Lance Ethernet
719 .ne 2
721 \fB\fBie\fR\fR
723 .RS 6n
724 Intel Ethernet
728 .ne 2
730 \fB\fBsd\fR\fR
732 .RS 6n
733 \fBSCSI\fR disk, CDROM
737 .ne 2
739 \fB\fBst\fR\fR
741 .RS 6n
742 \fBSCSI\fR 1/4" or 1/2" tape
746 .ne 2
748 \fB\fBfd\fR\fR
750 .RS 6n
751 Diskette
755 .ne 2
757 \fB\fBid\fR\fR
759 .RS 6n
760 IPI disk
764 .ne 2
766 \fB\fBmt\fR\fR
768 .RS 6n
769 Tape Master 9-track 1/2" tape
773 .ne 2
775 \fB\fBxd\fR\fR
777 .RS 6n
778 Xylogics 7053 disk
782 .ne 2
784 \fB\fBxt\fR\fR
786 .RS 6n
787 Xylogics 1/2" tape
791 .ne 2
793 \fB\fBxy\fR\fR
795 .RS 6n
796 Xylogics 440/450 disk
802 .ne 2
804 \fB\fIc\fR\fR
806 .RS 18n
807 A controller number (\fB0\fR if only one controller),
811 .ne 2
813 \fB\fIu\fR\fR
815 .RS 18n
816 A unit number (\fB0\fR if only one driver), and
820 .ne 2
822 \fB\fIp\fR\fR
824 .RS 18n
825 A partition.
829 .ne 2
831 \fB\fIpathname\fR\fR
833 .RS 18n
834 A pathname for a program such as \fB/stand/diag\fR.
838 .ne 2
840 \fB\fIarguments_list\fR\fR
842 .RS 18n
843 A list of up to seven arguments to pass to the program being booted.
849 .ne 2
851 \fB\fBc [\fR\fIvirtual_address\fR\fB]\fR\fR
853 .sp .6
854 .RS 4n
855 Resume execution of a program. When given, \fIvirtual_address\fR is the address
856 at which execution resumes. The default is the current \fBPC.\fR Registers are
857 restored to the values shown by the \fBd\fR, and \fBr\fR commands.
861 .ne 2
863 \fB\fBd [\fR\fIwindow_number\fR\fB]\fR\fR
865 .sp .6
866 .RS 4n
867 Display (dump) the state of the processor. The processor state is observable
868 only after:
869 .RS +4
871 .ie t \(bu
872 .el o
873 An unexpected trap was encountered.
875 .RS +4
877 .ie t \(bu
878 .el o
879 A user program dropped into the monitor (by calling \fIabortent\fR).
881 .RS +4
883 .ie t \(bu
884 .el o
885 The user manually entered the monitor by typing \fBL1\(miA\fR or \fBBREAK.\fR
887 The display consists of the following:
888 .RS +4
890 .ie t \(bu
891 .el o
892 The special registers: \fBPSR,\fR \fBPC,\fR nPC, \fBTBR,\fR \fBWIM,\fR and Y
894 .RS +4
896 .ie t \(bu
897 .el o
898 Eight global registers
900 .RS +4
902 .ie t \(bu
903 .el o
904 24 window registers (8 \fIin\fR, 8 \fIlocal\fR, and 8 \fIout\fR), corresponding
905 to one of the 7 available windows.  If a Floating-Point Unit is on board, its
906 status register along with 32 floating-point registers are also shown.
909 .ne 2
911 \fB\fIwindow_number\fR\fR
913 .RS 17n
914 Display the indicated \fIwindow_number\fR, which can be any value between
915 \fB0\fR and \fB6\fR, inclusive.  If no window is specified and the \fBPSR's\fR
916 current window pointer contains a valid window number, registers from the
917 window that was active just prior to entry into the monitor are displayed.
918 Otherwise, registers from window 0 are displayed.
924 .ne 2
926 \fB\fBe\fR [\fIvirtual_address\fR]\|[\fIaction\fR] .\|.\|.\fR
928 .sp .6
929 .RS 4n
930 Open the 16-bit word at \fIvirtual_address\fR (default zero).  The address is
931 interpreted in the address space defined by the \fBs\fR command. See the
932 \fBa\fR command for a description of \fIaction\fR.
936 .ne 2
938 \fB\fBf\fR\fI virtual_address1 virtual_address2 pattern \fR [\fIsize\|\fR]\fR
940 .sp .6
941 .RS 4n
942 Fill the bytes, words, or long words from \fIvirtual_address1\fR (lower) to
943 \fIvirtual_address2\fR (higher) with the constant, \fIpattern\fR. The
944 \fBsize\fR argument can take one of the following values:
946 .ne 2
948 \fB\fBb\fR\fR
950 .RS 5n
951 byte format (the default)
955 .ne 2
957 \fB\fBw\fR\fR
959 .RS 5n
960 word format
964 .ne 2
966 \fB\fBl\fR\fR
968 .RS 5n
969 long word format
972 For example, the following command fills the address block from \fB0x1000\fR to
973 \fB0x2000\fR with the word pattern, \fB0xABCD\fR:
975 \fBf 1000 2000 ABCD W\fR
979 .ne 2
981 \fB\fBg\fR [\fIvector\|\fR] [\fIargument\|\fR]\fR
985 \fB\fBg\fR [\fIvirtual_address\|\fR] [\fIargument\fR\|]\fR
987 .sp .6
988 .RS 4n
989 Goto (jump to) a predetermined or default routine (first form), or to a
990 user-specified routine (second form).  The value of \fIargument\fR is passed to
991 the routine.  If the \fIvector\fR or \fIvirtual_address\fR argument is omitted,
992 the value in the \fBPC\fR is used as the address to jump to.
994 To set up a predetermined routine to jump to, a user program must, prior to
995 executing the monitor's \fBg\fR command, set the variable
996 \fB*romp->v_vector_cmd\fR to be equal to the virtual address of the desired
997 routine. Predetermined routines need not necessarily return control to the
998 monitor.
1000 The default routine, defined by the monitor, prints the user-supplied
1001 \fIvector\fR according to the format supplied in \fIargument\fR. This format
1002 can be one of:
1004 .ne 2
1006 \fB\fB%x\fR\fR
1008 .RS 6n
1009 hexadecimal
1013 .ne 2
1015 \fB\fB%d\fR\fR
1017 .RS 6n
1018 decimal
1024 .ne 2
1026 \fB\fBg0\fR\fR
1028 .sp .6
1029 .RS 4n
1030 Force a panic and produce a crash dump  when the monitor is running as a result
1031 of the system being interrupted,
1035 .ne 2
1037 \fB\fBg4\fR\fR
1039 .sp .6
1040 .RS 4n
1041 (Sun-4 systems only) Force a kernel stack trace  when the monitor is running as
1042 a result of the system being interrupted,
1046 .ne 2
1048 \fB\fBh\fR\fR
1050 .sp .6
1051 .RS 4n
1052 Display the help menu for monitor commands and their descriptions. To return to
1053 the monitor's basic command level, press \fBESCAPE\fR or \fBq\fR before
1054 pressing \fBRETURN.\fR
1058 .ne 2
1060 \fB\fBi \fR[\fIcache_data_offset\fR\|] [\fIaction\fR\|]\|.\|.\|.\fR
1062 .sp .6
1063 .RS 4n
1064 Modify cache data \fBRAM\fR command.  Display and/or modify one or more of the
1065 cache data addresses.  See the \fBa\fR command for a description of
1066 \fIaction\fR.
1070 .ne 2
1072 \fB\fBj\fR [\fIcache_tag_offset\fR\|] [\fIaction\|\fR]\|.\|.\|.\fR
1074 .sp .6
1075 .RS 4n
1076 Modify cache tag \fBRAM\fR command.  Display and/or modify the contents of one
1077 or more of the cache tag addresses.  See the \fBa\fR command for a description
1078 of \fIaction\fR.
1082 .ne 2
1084 \fB\fBk [\fR\fIreset_level\fR\fB]\fR\fR
1086 .sp .6
1087 .RS 4n
1088 Reset the system, where \fIreset_level\fR is:
1090 .ne 2
1092 \fB\fB0\fR\fR
1094 .RS 5n
1095 Reset \fBVMEbus,\fR interrupt registers, video monitor (Sun-4 systems). This is
1096 the default.
1100 .ne 2
1102 \fB\fB1\fR\fR
1104 .RS 5n
1105 Software reset.
1109 .ne 2
1111 \fB\fB2\fR\fR
1113 .RS 5n
1114 Power-on reset. Resets and clears the memory. Runs the \fBEPROM-based\fR
1115 diagnostic self test, which can take several minutes, depending upon how much
1116 memory is being tested.
1122 .ne 2
1124 \fB\fBkb\fR\fR
1126 .sp .6
1127 .RS 4n
1128 Display the system banner.
1132 .ne 2
1134 \fB\fBl\|\fR [\fIvirtual_address\fR\|]\|[\fIaction\fR]\|.\|.\|.\fR
1136 .sp .6
1137 .RS 4n
1138 Open the long word (32 bit) at memory address \fIvirtual_address\fR (default
1139 zero).  The address is interpreted in the address space defined by the \fBs\fR
1140 command (below).  See the \fBa\fR command for a description of \fIaction\fR.
1144 .ne 2
1146 \fB\fBm\|\fR [\fIvirtual_address\fR\|]\|[\fIaction\fR\|]\|.\|.\|.\fR
1148 .sp .6
1149 .RS 4n
1150 Open the segment map entry that maps \fIvirtual_address\fR (default zero). The
1151 address is interpreted in the address space defined by the \fBs\fR command. See
1152 the \fBa\fR command for a description of \fIaction\fR.
1156 .ne 2
1158 \fB\fBne\fR\fR
1160 .sp .6
1161 .RS 4n
1166 .ne 2
1168 \fB\fBni\fR\fR
1170 .sp .6
1171 .RS 4n
1172 Disable, enable, or invalidate the cache, respectively.
1176 .ne 2
1178 \fB\fBo\|\fR [\fIvirtual_address\fR\|]\|[action\fI]\|.\|.\|.\fR\fR
1180 .sp .6
1181 .RS 4n
1182 Open the byte location specified  by \fIvirtual_address\fR (default zero).  The
1183 address is interpreted in the address space defined by the \fBs\fR command. See
1184 the \fBa\fR command for a description of \fIaction\fR.
1188 .ne 2
1190 \fB\fBp\|\fR [\fIvirtual_address\fR\|]\|[\fIaction\fR].\|.\|.\fR
1192 .sp .6
1193 .RS 4n
1194 Open the page map entry that maps \fIvirtual_address\fR (default zero) in the
1195 address space defined by the \fBs\fR command. See the \fBa\fR command for a
1196 description of \fIaction\fR.
1200 .ne 2
1202 \fB\fBq\|\fR [\fIeeprom_offset\fR\|]\|[\fIaction\fR\|].\|.\|.\fR
1204 .sp .6
1205 .RS 4n
1206 Open the \fBEEPROM\fR \fIeeprom_offset\fR (default zero) in the \fBEEPROM\fR
1207 address space. All addresses are referenced from the beginning or base of the
1208 \fBEEPROM\fR in physical address space, and a limit check is performed to
1209 insure that no address beyond the \fBEEPROM\fR physical space is accessed. This
1210 command is used to display or modify configuration parameters, such as: the
1211 amount of memory to test during self test, whether to display a standard or
1212 custom banner, if a serial port (A or B) is to be the system console, etc. See
1213 the \fBa\fR command for a description of \fIaction\fR.
1217 .ne 2
1219 \fB\fBr\|\fR [\fIregister_number\|\fR]\fR
1223 \fB\fBr\|\fR [\fIregister_type\|\fR]\fR
1227 \fB\fBr\|\fR [\fIw window_number\|\fR]\fR
1229 .sp .6
1230 .RS 4n
1231 Display and/or modify one or more of the \fBIU\fR or \fBFPU\fR registers. A
1232 hexadecimal \fIregister_number\fR can be one of:
1234 .ne 2
1236 \fB\fB0x00\fR\(mi\fB0x0f\fR\fR
1238 .RS 16n
1239 window(0,i0)\(miwindow(0,i7), window(0,i0)\(emwindow(0,i7)
1243 .ne 2
1245 \fB\fB0x16\fR\(mi\fB0x1f\fR\fR
1247 .RS 16n
1248 window(1,i0)\(miwindow(1,i7), window(1,i0)\(emwindow(1,i7)
1252 .ne 2
1254 \fB\fB0x20\fR\(mi\fB0x2f\fR\fR
1256 .RS 16n
1257 window(2,i0)\(miwindow(2,i7), window(2,i0)\(emwindow(2,i7)
1261 .ne 2
1263 \fB\fB0x30\fR\(mi\fB0x3f\fR\fR
1265 .RS 16n
1266 window(3,i0)\(miwindow(3,i7), window(3,i0)\(emwindow(3,i7)
1270 .ne 2
1272 \fB\fB0x40\fR\(mi\fB0x4f\fR\fR
1274 .RS 16n
1275 window(4,i0)\(miwindow(4,i7), window(4,i0)\(emwindow(4,i7)
1279 .ne 2
1281 \fB\fB0x50\fR\(mi\fB0x5f\fR\fR
1283 .RS 16n
1284 window(5,i0)\(miwindow(5,i7), window(5,i0)\(emwindow(5,i7)
1288 .ne 2
1290 \fB\fB0x60\fR\(mi\fB0x6f\fR\fR
1292 .RS 16n
1293 window(6,i0)\(miwindow(6,i7), window(6,i0)\(emwindow(6,i7)
1297 .ne 2
1299 \fB\fB0x70\fR\(mi\fB0x77\fR\fR
1301 .RS 16n
1302 \fBg0, g1, g2, g3, g4, g5, g6, g7\fR
1306 .ne 2
1308 \fB\fB0x78\fR\(mi\fB0x7d\fR\fR
1310 .RS 16n
1311 \fBPSR,\fR \fBPC,\fR \fBnPC,\fR \fBWIM,\fR \fBTBR,\fR \fBY.\fR
1315 .ne 2
1317 \fB\fB0x7e\fR\(mi\fB0x9e\fR\fR
1319 .RS 16n
1320 \fBFSR,\fR f0\(mif31
1323 Register numbers can only be displayed after an unexpected trap, a user program
1324 has entered the monitor using the \fIabortent\fR function, or the user has
1325 entered the monitor by manually typing \fBL1\(miA\fR or \fBBREAK.\fR
1327 If a \fIregister_type\fR is given, the first register of the indicated type is
1328 displayed. \fIregister_type\fR can be one of:
1330 .ne 2
1332 \fB\fBf\fR\fR
1334 .RS 5n
1335 floating-point
1339 .ne 2
1341 \fB\fBg\fR\fR
1343 .RS 5n
1344 global
1348 .ne 2
1350 \fB\fBs\fR\fR
1352 .RS 5n
1353 special
1356 If \fBw\fR and a \fIwindow_number\fR (\fB0\fR\(em\fB6\fR) are given, the first
1357 \fIin\fR-register within the indicated window is displayed.  If
1358 \fIwindow_number\fR is omitted, the window that was active just prior to
1359 entering the monitor is used.  If the \fBPSR's\fR current window pointer is
1360 invalid, window 0 is used.
1364 .ne 2
1366 \fB\fBs [\fR\fIasi\fR\fB])\fR\fR
1368 .sp .6
1369 .RS 4n
1370 Set or display the Address Space Identifier.  With no argument, \fBs\fR
1371 displays the current Address Space Identifier.  The \fIasi\fR value can be one
1374 .ne 2
1376 \fB\fB0x2\fR\fR
1378 .RS 7n
1379 control space
1383 .ne 2
1385 \fB\fB0x3\fR\fR
1387 .RS 7n
1388 segment table
1392 .ne 2
1394 \fB\fB0x4\fR\fR
1396 .RS 7n
1397 Page table
1401 .ne 2
1403 \fB\fB0x8\fR\fR
1405 .RS 7n
1406 user instruction
1410 .ne 2
1412 \fB\fB0x9\fR\fR
1414 .RS 7n
1415 supervisor instruction
1419 .ne 2
1421 \fB\fB0xa\fR\fR
1423 .RS 7n
1424 user data
1428 .ne 2
1430 \fB\fB0xb\fR\fR
1432 .RS 7n
1433 supervisor data
1437 .ne 2
1439 \fB\fB0xc\fR\fR
1441 .RS 7n
1442 flush segment
1446 .ne 2
1448 \fB\fB0xd\fR\fR
1450 .RS 7n
1451 flush page
1455 .ne 2
1457 \fB\fB0xe\fR\fR
1459 .RS 7n
1460 flush context
1464 .ne 2
1466 \fB\fB0xf\fR\fR
1468 .RS 7n
1469 cache data
1475 .ne 2
1477 \fB\fBu\fR [ \fBecho\fR ]\fR
1479 .sp .6
1480 .RS 4n
1485 .ne 2
1487 \fB\fBu\fR [ \fIport\fR ] [ \fIoptions\fR ] [ \fIbaud_rate\fR ]\fR
1489 .sp .6
1490 .RS 4n
1495 .ne 2
1497 \fB\fBu\fR [ \fBu\fR ] [ \fIvirtual_address\fR ]\fR
1499 .sp .6
1500 .RS 4n
1501 With no arguments, display the current I/O device characteristics including:
1502 current input device, current output device, baud rates for serial ports A and
1503 B, an input-to-output echo indicator, and virtual addresses of mapped
1504 \fBUART\fR devices. With arguments, set or configure the current I/O device.
1505 With the \fBu\fR argument (\fBuu\fR.\|.\|.), set the I/O device to be the
1506 \fIvirtual_address\fR of a \fBUART\fR device currently mapped.
1508 .ne 2
1510 \fB\fBecho\fR\fR
1512 .RS 13n
1513  Can be either \fBe\fR to enable input to be echoed to the output device, or
1514 \fBne\fR, to indicate that input is not echoed.
1518 .ne 2
1520 \fB\fIport\fR\fR
1522 .RS 13n
1523 Assign the indicated \fIport\fR to be the current I/O device. \fIport\fR can be
1524 one of:
1526 .ne 2
1528 \fB\fBa\fR\fR
1530 .RS 5n
1531 serial port A
1535 .ne 2
1537 \fB\fBb\fR\fR
1539 .RS 5n
1540 serial port B
1544 .ne 2
1546 \fB\fBk\fR\fR
1548 .RS 5n
1549 the workstation keyboard
1553 .ne 2
1555 \fB\fBs\fR\fR
1557 .RS 5n
1558 the workstation screen
1564 .ne 2
1566 \fB\fIbaud_rate\fR\fR
1568 .RS 13n
1569 Any legal baud rate.
1573 .ne 2
1575 \fB\fIoptions\fR\fR
1577 .RS 11n
1578 can be any combination of:
1580 .ne 2
1582 \fB\fBi\fR\fR
1584 .RS 6n
1585 input
1589 .ne 2
1591 \fB\fBo\fR\fR
1593 .RS 6n
1594 output
1598 .ne 2
1600 \fB\fBu\fR\fR
1602 .RS 6n
1603 \fBUART\fR
1607 .ne 2
1609 \fB\fBe\fR\fR
1611 .RS 6n
1612 echo input to output
1616 .ne 2
1618 \fB\fBne\fR\fR
1620 .RS 6n
1621 do not echo input
1625 .ne 2
1627 \fB\fBr\fR\fR
1629 .RS 6n
1630 reset indicated serial port (\fBa\fR and \fBb\fR ports only)
1633 If either \fBa\fR or \fBb\fR is supplied, and no \fIoptions\fR are given, the
1634 serial port is assigned for both input and output.  If \fBk\fR is supplied with
1635 no options, it is assigned for input only.  If \fBs\fR is supplied with no
1636 options, it is assigned for output only.
1642 .ne 2
1644 \fB\fBv\fR\fI virtual_address1 virtual_address2 \fR [\fBsize\fR]\fR
1646 .sp .6
1647 .RS 4n
1648 Display the contents of \fIvirtual_address1\fR (lower) \fIvirtual_address2\fR
1649 (higher) in the format specified by \fBsize\fR:
1651 .ne 2
1653 \fB\fBb\fR\fR
1655 .RS 5n
1656 byte format (the default)
1660 .ne 2
1662 \fB\fBw\fR\fR
1664 .RS 5n
1665 word format
1669 .ne 2
1671 \fB\fBl\fR\fR
1673 .RS 5n
1674 long word format
1677 Enter return to pause for viewing; enter another return character to resume the
1678 display.  To terminate the display at any time, press the space bar.
1680 For example, the following command displays the contents of virtual address
1681 space from address  \fB0x1000\fR to  \fB0x2000\fR in word format:
1683 \fBv\fR \fB1000\fR \fB2000\fR \fBW\fR
1687 .ne 2
1689 \fB\fBw\|\fR [\fIvirtual_address\|\fR]\|[\fIargument\|\fR]\fR
1691 .sp .6
1692 .RS 4n
1693 Set the execution vector to a predetermined or default routine. Pass
1694 \fIvirtual_address\fR and \fIargument\fR to that routine.
1696 To set up a predetermined routine to jump to, a user program must, prior to
1697 executing the monitor's \fBw\fR command, set the variable
1698 \fB*romp->v_vector_cmd\fR to be equal to the virtual address of the desired
1699 routine. Predetermined routines need not necessarily return control to the
1700 monitor.
1702 The default routine, defined by the monitor, prints the user-supplied
1703 \fIvector\fR according to the format supplied in \fIargument\fR. This format
1704 can be one of:
1706 .ne 2
1708 \fB\fB%x\fR\fR
1710 .RS 6n
1711 hexadecimal
1715 .ne 2
1717 \fB\fB%d\fR\fR
1719 .RS 6n
1720 decimal
1726 .ne 2
1728 \fB\fBx\fR\fR
1730 .sp .6
1731 .RS 4n
1732 Display a menu of extended tests. These diagnostics permit additional testing
1733 of such things as the I/O port connectors, video memory, workstation memory and
1734 keyboard, and boot device paths.
1738 .ne 2
1740 \fB\fBy\|c\fR\fI context_number\fR\fR
1742 .sp .6
1743 .RS 4n
1748 .ne 2
1750 \fB\fBy\|p|s\|\fR\fI context_number virtual_address\fR\fR
1752 .sp .6
1753 .RS 4n
1754 Flush the indicated context, context page, or context segment.
1756 .ne 2
1758 \fB\fBc\fR\fR
1760 .RS 5n
1761 flush context \fIcontext_number\fR
1765 .ne 2
1767 \fB\fBp\fR\fR
1769 .RS 5n
1770 flush the page beginning at \fIvirtual_address\fR within context
1771 \fIcontext_number\fR
1775 .ne 2
1777 \fB\fBs\fR\fR
1779 .RS 5n
1780 flush the segment beginning at \fIvirtual_address\fR within context
1781 \fIcontext_number\fR
1786 .SH ATTRIBUTES
1789 See \fBattributes\fR(5) for descriptions of the following attributes:
1794 box;
1795 c | c
1796 l | l .
1797 ATTRIBUTE TYPE  ATTRIBUTE VALUE
1799 Architecture    SPARC
1802 .SH SEE ALSO
1805 \fBtip\fR(1), \fBboot\fR(1M), \fBeeprom\fR(1M), \fBattributes\fR(5)