


MONITOR(8S)           MAINTENANCE COMMANDS            MONITOR(8S)



NAME
     monitor - system ROM monitor

SYNOPSIS
     L1-A

     BREAK

DESCRIPTION
     The CPU board of the Sun workstation contains an  EPROM  (or
     set of EPROMs), called the _m_o_n_i_t_o_r, that controls the system
     during  startup.   The  monitor  tests  the  system   before
     attempting  to  boot the operating system.  If you interrupt
     the boot procedure by holding down L1 while typing a or A on
     the  workstation keyboard (or BREAK if the console is a dumb
     terminal) the monitor issues the prompt:

          >

     and accepts commands interactively.

USAGE
  Modes
     The monitor supports three security modes (non-secure,  com-
     mand  secure,  and fully secure) and an authentication pass-
     word.  Access to monitor commands  is  controlled  by  these
     security modes.  In non-secure mode all monitor commands are
     allowed.  In command secure mode, only the  b(boot)  command
     with  no arguments and the c(continue) command with no argu-
     ments may be entered without  supplying  the  authentication
     password.   In  fully secure mode, only the c(continue) com-
     mand with no arguments may be entered without supplying  the
     authentication  password.   Note:  The system will not auto-
     reboot in fully secure mode.   The  authentication  password
     must be entered before booting will take place.

  Commands
     Note: the following commands are available on all  Sun  sys-
     tems  _e_x_c_e_p_t  SPARCstation  1 systems, only the b and c com-
     mands listed below are available on those systems.  See  the
     `_O_p_e_n _P_R_O_M _T_o_o_l_k_i_t _U_s_e_r'_s _G_u_i_d_e' for a complete list of com-
     mands available on a SPARCstation 1 systems.

     +|-         Increment or decrement the current  address  and
                 display the contents of the new location.

     ^C _s_o_u_r_c_e _d_e_s_t_i_n_a_t_i_o_n _n
                 (caret-C) Copy, byte-by-byte a block of length _n
                 from  the  _s_o_u_r_c_e  address  to  the  _d_e_s_t_i_n_a_t_i_o_n
                 address.

     ^I _p_r_o_g_r_a_m  (caret-I) Display the compilation date and loca-
                 tion of _p_r_o_g_r_a_m.



Sun Release 4.1     Last change: 1 July 1990                    1





MONITOR(8S)           MAINTENANCE COMMANDS            MONITOR(8S)



     ^T _v_i_r_t_u_a_l__a_d_d_r_e_s_s
                 (caret-T) Display the physical address to  which
                 _v_i_r_t_u_a_l__a_d_d_r_e_s_s is mapped.

     a [_n] [_a_c_t_i_o_n]...     (Sun-2 and Sun-3 systems only)
                 Open A-register (cpu address  register)  _n,  and
                 perform  indicated actions.  The number _n can be
                 any value from 0 to 7, inclusive.   The  default
                 value  is  0.   A  hexadecimal  _a_c_t_i_o_n  argument
                 assigns the value you supply to the register  _n.
                 A non-hex _a_c_t_i_o_n terminates command input.

     b [ _d_e_v_i_c_e [ (_c,_u,_p) ]  ]  [  _p_a_t_h_n_a_m_e  ]  [  _a_r_g_u_m_e_n_t_s__l_i_s_t
                 ]    (SPARCstation 1 systems only)
     b [ ! ] [ _d_e_v_i_c_e [ (_c,_u,_p) ] ] [ _p_a_t_h_n_a_m_e ] [ _a_r_g_u_m_e_n_t_s__l_i_s_t
                 ]
     b[?]        Reset  appropriate  parts  of  the  system   and
                 bootstrap  a  program.   Note: the `b!' and `b?'
                 commands are not  available  on  SPARCstation  1
                 systems,  see  boot(8S).   A  `!' (preceding the
                 _d_e_v_i_c_e argument) prevents the system reset  from
                 occurring.   Programs can be loaded from various
                 devices (such as a disk, tape or Ethernet).  `b'
                 with  no  arguments  will  cause a default boot,
                 either from a disk, or  from  an  Ethernet  con-
                 troller.   `b?'  displays  all  boot devices and
                 their _d_e_v_i_c_e arguments, where _d_e_v_i_c_e is one of:

                      ie  Intel Ethernet
                      le  Lance  Ethernet  (Sun-2,  Sun-3,  Sun-4
                          systems only)
                      sd  SCSI disk
                      st  SCSI 1/4" tape
                      mt  Tape Master 9-track 1/2"  tape  (Sun-2,
                          Sun-3, Sun-4 systems only)
                      xd  Xylogics 7053 disk (Sun-2, Sun-3, Sun-4
                          systems only)
                      xt  Xylogics 1/2" tape (Sun-2, Sun-3, Sun-4
                          systems only)
                      xy  Xylogics 440/450  disk  (Sun-2,  Sun-3,
                          Sun-4 systems only) only)
                      fd  Diskette (Sun386i, Sun-3/80 and SPARCs-
                          tation 1 systems only)

                 _c    A controller number (0  if  only  one  con-
                      troller),

                 _u    A unit number (0 if only one driver), and

                 _p    A partition.

                 _p_a_t_h_n_a_m_e



Sun Release 4.1     Last change: 1 July 1990                    2






MONITOR(8S)           MAINTENANCE COMMANDS            MONITOR(8S)



                      A  pathname   for   a   program   such   as
                      /stand/diag.  /vmunix is the default.

                 _a_r_g_u_m_e_n_t_s__l_i_s_t
                      A list of up to seven arguments to pass  to
                      the program being booted.

     c    (SPARCstation 1 systems only)
     c [_v_i_r_t_u_a_l__a_d_d_r_e_s_s]
                 Resume execution of a program.   SPARCstation  1
                 systems  do  not  accept  a virtual address, the
                 current  PC  is  assumed.   See  the  _O_p_e_n  _P_R_O_M
                 _T_o_o_l_k_i_t  _U_s_e_r'_s  _G_u_i_d_e  for  details on changing
                 this value.  When given, _v_i_r_t_u_a_l__a_d_d_r_e_s_s is  the
                 address  at  which  execution  will resume.  The
                 default is the current PC (EIP on  Sun386i  sys-
                 tems).   Registers  are  restored  to the values
                 shown by the a, d, and r commands (for Sun-2 and
                 Sun-3  systems), or by the d and r commands (for
                 Sun-4 systems), or by the d command (for Sun386i
                 systems).

     d [_w_i_n_d_o_w__n_u_m_b_e_r]     (Sun-4 systems only)
                 Display (dump) the state of the processor.   The
                 processor state is observable only after:

                      o+  An unexpected trap was encountered.
                      o+  A user program dropped into the  monitor
                         (by calling _a_b_o_r_t_e_n_t).
                      o+  The user manually entered the monitor by
                         typing L1-A or BREAK.

                 The display consists of the following:

                      o+   The special registers:  PSR,  PC,  nPC,
                          TBR, WIM and Y
                      o+   Eight global registers, and
                      o+   24 window registers (8 _i_n, 8 _l_o_c_a_l, and
                          8  _o_u_t),  corresponding to one of the 7
                          available windows.  If a Floating-Point
                          Unit  is  on board, its status register
                          along with its 32 floating-point regis-
                          ters are also shown.

                 _w_i_n_d_o_w__n_u_m_b_e_r
                      Display the indicated _w_i_n_d_o_w__n_u_m_b_e_r,  which
                      can   be   any   value  between  0  and  6,
                      inclusive.  If no window is  specified  and
                      the PSR's current window pointer contains a
                      valid window  number,  registers  from  the
                      window  that was active just prior to entry
                      into the monitor are displayed.  Otherwise,



Sun Release 4.1     Last change: 1 July 1990                    3






MONITOR(8S)           MAINTENANCE COMMANDS            MONITOR(8S)



                      registers from window 0 are displayed.

     d    (Sun386i systems only)
                 Display (dump) the state of the processor.  This
                 display consists of the registers, listed below:

                      Processor Registers:        EAX, ECX,  EDX,
                                                  ESI,  EDI, ESP,
                                                  EBP,    EFLAGS,
                                                  EIP
                      Segment Registers:          ES, CS, SS, DS,
                                                  FS, GS
                      Memory Management Registers:
                                                  GDTR,     LDTR,
                                                  IDTR, TR
                      Control Registers:          CR0, CR2, CR3
                      Debug Registers:            DR0, DR1 ,  DR2
                                                  , DR3, DR6, DR7
                      Test Registers:             TR6, TR7

                 The processor's state is observable  only  after
                 an unexpected trap, a user program has "dropped"
                 into the monitor (by  calling  monitor  function
                 abortentor)  or  the user has manually "broken "
                 into the monitor (by typing L1-A on the Worksta-
                 tion  console,  or  BREAK on the dumb terminal's
                 keyboard.

     d [_n][_a_c_t_i_o_n]... (Sun-2 and Sun-3 systems only)
                 Open D-register (cpu data register) _n, and  per-
                 form indicated actions.  The number _n can be any
                 value from 0 to 7, inclusive.  The default is 0.
                 See the a command for a description of _a_c_t_i_o_n.

     e [_v_i_r_t_u_a_l__a_d_d_r_e_s_s][_a_c_t_i_o_n] ...
                 Open the 16 bit word at _v_i_r_t_u_a_l__a_d_d_r_e_s_s (default
                 zero).   On Sun-2, Sun-3, and Sun-4 systems, the
                 address is  interpreted  in  the  address  space
                 defined by the s command.  See the a command for
                 a description of _a_c_t_i_o_n.

     f _v_i_r_t_u_a_l__a_d_d_r_e_s_s_1 _v_i_r_t_u_a_l__a_d_d_r_e_s_s_2 _p_a_t_t_e_r_n [_s_i_z_e]    (Sun-3
                 and Sun-4 systems only)
                 Fill  the  bytes,  words  or  long  words   from
                 _v_i_r_t_u_a_l__a_d_d_r_e_s_s_1   (lower)  to  _v_i_r_t_u_a_l__a_d_d_r_e_s_s_2
                 (higher) with the constant, _p_a_t_t_e_r_n.   The  _s_i_z_e
                 argument can take one of the following values

                      b   byte format (the default)
                      w   word format
                      l   long word format




Sun Release 4.1     Last change: 1 July 1990                    4






MONITOR(8S)           MAINTENANCE COMMANDS            MONITOR(8S)



                 For example, the  following  command  fills  the
                 address  block  from  0x1000  to 0x2000 with the
                 word pattern, 0xABCD:

                      f 1000 2000 ABCD W

     g [_v_e_c_t_o_r] [_a_r_g_u_m_e_n_t]
     g [_v_i_r_t_u_a_l__a_d_d_r_e_s_s] [_a_r_g_u_m_e_n_t]
                 Goto (jump to) a predetermined or  default  rou-
                 tine  (first  form), or to a user-specified rou-
                 tine (second form).  The value  of  _a_r_g_u_m_e_n_t  is
                 passed   to  the  routine.   If  the  _v_e_c_t_o_r  or
                 _v_i_r_t_u_a_l__a_d_d_r_e_s_s argument is omitted,  the  value
                 in the PC is used as the address to jump to.

                 To set up a predetermined routine to jump to,  a
                 user   program  must,  prior  to  executing  the
                 monitor's g command,  set  the  variable  *romp-
                 >v_vector_cmd to be equal to the virtual address
                 of the desired routine.  Predetermined  routines
                 need not necessarily return control to the moni-
                 tor.

                 The default routine,  defined  by  the  monitor,
                 prints the user-supplied _v_e_c_t_o_r according to the
                 format supplied in _a_r_g_u_m_e_n_t.  This format can be
                 one of:

                      %x  hexadecimal
                      %d  decimal

     g0   (Sun-2, Sun-3, and Sun-4 only)
                 When the monitor is running as a result  of  the
                 system being interrupted, force a panic and pro-
                 duce a crash dump.

     g4          When the monitor is running as a result  of  the
                 system  being  interrupted, force a kernel stack
                 trace.

     h    (Sun-3 and Sun-4 and Sun386i systems)
                 Display the help menu for monitor  commands  and
                 their  descriptions.  To return to the monitor's
                 basic command level, press ESCAPE  or  q  before
                 pressing RETURN.

Sun-4 systems only)
     i  [_c_a_c_h_e__d_a_t_a__o_f_f_s_e_t]  [_a_c_t_i_o_n]...       (Sun-
                 3/200  series  and
                 Modify cache data RAM command.   Display  and/or
                 modify one or more of the
                 Modify cache data RAM command.   Display  and/or



Sun Release 4.1     Last change: 1 July 1990                    5






MONITOR(8S)           MAINTENANCE COMMANDS            MONITOR(8S)



                 modify  one or more of the cache data addresses.
                 See the a command for a description of _a_c_t_i_o_n.

     j [_c_a_c_h_e__t_a_g__o_f_f_s_e_t] [_a_c_t_i_o_n]...     (Sun-3/200  series  and
                 Sun-4 systems only)
                 Modify cache tag RAM  command.   Display  and/or
                 modify  the contents of one or more of the cache
                 tag addresses.  See the a command for a descrip-
                 tion of _a_c_t_i_o_n.

     k [_r_e_s_e_t__l_e_v_e_l]
                 Reset the system.  If _r_e_s_e_t__l_e_v_e_l is:

                      0   CPU reset only (Sun-2  and  Sun-3  sys-
                          tems).   Reset VMEbus, interrupt regis-
                          ters, video  monitor  (Sun-4  systems).
                          This   is  the  default.   Reset  video
                          (Sun386i systems).
                      1   Software reset.
                      2   Power-on reset.  Resets and clears  the
                          memory. Runs the EPROM-based diagnostic
                          self  test,  which  can  take   several
                          minutes, depending upon how much memory
                          is being tested.

     kb          Display the system banner.

     l [_v_i_r_t_u_a_l__a_d_d_r_e_s_s][_a_c_t_i_o_n]...
                 Open the long word (32 bit)  at  memory  address
                 _v_i_r_t_u_a_l__a_d_d_r_e_s_s (default zero).  On Sun-2, Sun-3
                 and Sun-4 systems, the address is interpreted in
                 the  address  space  defined  by  the  s command
                 (below).  See the a command for a description of
                 _a_c_t_i_o_n.

     m [_v_i_r_t_u_a_l__a_d_d_r_e_s_s][_a_c_t_i_o_n]...
                 Open   the   segment   map   entry   that   maps
                 _v_i_r_t_u_a_l__a_d_d_r_e_s_s (default zero).  On Sun-2, Sun-3
                 and Sun-4 systems, the address is interpreted in
                 the address space defined by the s command.  Not
                 supported on Sun386i.  See the a command  for  a
                 description of _a_c_t_i_o_n.

     nd   (Sun386i systems only)
     ne
     ni          Disable,  enable,  or  invalidate   the   cache,
                 respectively

     o [_v_i_r_t_u_a_l__a_d_d_r_e_s_s][action]...
                 Open the byte location specified  by
                 _v_i_r_t_u_a_l__a_d_d_r_e_s_s (default zero).  On Sun-2, Sun-3
                 and Sun-4 systems, the address is interpreted in



Sun Release 4.1     Last change: 1 July 1990                    6






MONITOR(8S)           MAINTENANCE COMMANDS            MONITOR(8S)



                 the address space defined by the s command.  See
                 the a command for a description of _a_c_t_i_o_n.

     p [_v_i_r_t_u_a_l__a_d_d_r_e_s_s][_a_c_t_i_o_n]...
                 Open   the   page   map    entry    that    maps
                 _v_i_r_t_u_a_l__a_d_d_r_e_s_s  (default  zero)  in the address
                 space defined by the s command. See the  a  com-
                 mand for a description of _a_c_t_i_o_n.

     p   [_p_o_r_t__a_d_d_r_e_s_s]   [[_n_o_n_h_e_x__c_h_a_r   [_h_e_x__v_a_l_u_e]   |   _h_e_x__v_a_l_u_e]
                 Display  or  modify  the contents of one or more
                 port I/O addresses  in  byte  mode.   Each  port
                 address   is  treated  as  a  8-bit  unit.   The
                 optional _p_o_r_t__a_d_d_r_e_s_s, argument, which is a  16-
                 bit  quantity,  specifies  the  initial port I/O
                 address.   See  the  e  command   for   argument
                 descriptions.

     q  [_e_e_p_r_o_m__o_f_f_s_e_t][_a_c_t_i_o_n]...    (Sun-3  and  Sun-4  systems
                 only)
                 Open the EEPROM _e_e_p_r_o_m__o_f_f_s_e_t (default zero)  in
                 the  EEPROM  address  space.  All  addresses are
                 referenced from the beginning  or  base  of  the
                 EEPROM  in  physical  address space, and a limit
                 check is performed to  insure  that  no  address
                 beyond the EEPROM physical space is accessed. On
                 Sun386i systems,  open  the  NVRAM  _n_v_r_a_m__o_f_f_s_e_t
                 (default zero).  This command is used to display
                 or modify configuration parameters, such as: the
                 amount  of  memory  to  test  during  self test,
                 whether to display a standard or custom  banner,
                 if  a  serial  port (A or B) is to be the system
                 console, etc. See the a command for  a  descrip-
                 tion of _a_c_t_i_o_n.

(Sun386i systems only)
     r  [_r_e_g__n_a_m_e]  [[_n_o_n_h_e_x__c_h_a_r  [_h_e_x__v_a_l_u_e]   |   _h_e_x__v_a_l_u_e]   ...]
                 Display  or  modify one or more of the processor
                 registers.  If _r_e_g__n_a_m_e is  specified  (2  or  3
                 characters  from  the above list), that register
                 is displayed first.  The default  is  EAX.   See
                 note  on register availability under the command
                 d (for Sun386i systems).  See the e command  for
                 argument descriptions.

     s [_s_t_e_p__c_o_u_n_t]      (Sun386i systems only)
                 Single step the  execution  of  the  interrupted
                 program.   The _s_t_e_p__c_o_u_n_t argument specifies the
                 number  of  single  steps  to   execute   before
                 displaying  the  monitor prompt.  The default is
                 1.




Sun Release 4.1     Last change: 1 July 1990                    7






MONITOR(8S)           MAINTENANCE COMMANDS            MONITOR(8S)



     r  [_r_e_g_i_s_t_e_r__n_u_m_b_e_r][_a_c_t_i_o_n]...  (Sun-2  and  Sun-3  systems
                 only)
                 Display and/or modify  the  register  indicated.
                 _r_e_g_i_s_t_e_r__n_u_m_b_e_r can be one of:

                      CA  68020 Cache Address Register
                      CC  68020 Cache Control Register
                      CX  68020 System and User Context
                      DF  Destination Function code
                      IS  68020 Interrupt Stack Pointer
                      MS  68020 Master Stack Pointer
                      PC  Program Counter
                      SC  68010 System Context
                      SF  Source Function code
                      SR  Status Register
                      SS  68010 Supervisor Stack Pointer
                      UC  68010 User Context
                      US  User Stack Pointer
                      VB  Vector Base

                 Alterations to these registers  (except  SC  and
                 UC)  do not take effect until the next c command
                 is executed.  See the a command for  a  descrip-
                 tion of _a_c_t_i_o_n.

     r [_r_e_g_i_s_t_e_r__n_u_m_b_e_r]   (Sun-4 systems only)
     r [_r_e_g_i_s_t_e_r__t_y_p_e]
     r [_w _w_i_n_d_o_w__n_u_m_b_e_r]
                 Display and/or modify one or more of the  IU  or
                 FPU registers.

                 A hexadecimal _r_e_g_i_s_t_e_r__n_u_m_b_e_r can be one of:

                      0x00-0x0f   window(0,i0)-window(0,i7),
                                  window(0,i0)-window(0,i7)
                      0x16-0x1f   window(1,i0)-window(1,i7),
                                  window(1,i0)-window(1,i7)
                      0x20-0x2f   window(2,i0)-window(2,i7),
                                  window(2,i0)-window(2,i7)
                      0x30-0x3f   window(3,i0)-window(3,i7),
                                  window(3,i0)-window(3,i7)
                      0x40-0x4f   window(4,i0)-window(4,i7),
                                  window(4,i0)-window(4,i7)
                      0x50-0x5f   window(5,i0)-window(5,i7),
                                  window(5,i0)-window(5,i7)
                      0x60-0x6f   window(6,i0)-window(6,i7),
                                  window(6,i0)-window(6,i7)
                      0x70-0x77   g0, g1, g2, g3, g4, g5, g6, g7
                      0x78-0x7d   PSR, PC, nPC, WIM, TBR, Y
                      0x7e-0x9e   FSR, f0-f31

                      Register  numbers  can  only  be  displayed



Sun Release 4.1     Last change: 1 July 1990                    8






MONITOR(8S)           MAINTENANCE COMMANDS            MONITOR(8S)



                      after  an  unexpected  trap, a user program
                      has entered the monitor using the  _a_b_o_r_t_e_n_t
                      function, or the user has entered the moni-
                      tor by manually typing L1-A or BREAK.

                 If a _r_e_g_i_s_t_e_r__t_y_p_e is given, the first  register
                 of    the    indicated    type   is   displayed.
                 _r_e_g_i_s_t_e_r__t_y_p_e can be one of:

                      f   floating-point
                      g   global
                      s   special

                 If w and a _w_i_n_d_o_w__n_u_m_b_e_r (0-6)  are  given,  the
                 first _i_n-register within the indicated window is
                 displayed.  If  _w_i_n_d_o_w__n_u_m_b_e_r  is  omitted,  the
                 window  that  was  active just prior to entering
                 the monitor is used.  If the PSR's current  win-
                 dow pointer is invalid, window 0 is used.

     s [_c_o_d_e]    (Sun-2 and Sun-3 systems only)
                 Set or query the address space  to  be  used  by
                 subsequent  memory access commands.  _c_o_d_e is one
                 of:

                      0   undefined
                      1   user data space
                      2   user program space
                      3   user control space
                      4   undefined
                      5   supervisor data space
                      6   supervisor program space
                      7   supervisor control space

                 If _c_o_d_e  is  omitted,  s  displays  the  current
                 address space.

     s [_a_s_i]     (Sun-4 systems only)
                 Set or display  the  Address  Space  Identifier.
                 With no argument, s displays the current Address
                 Space Identifier.  The _a_s_i value can be one of:

                      0x2         control space
                      0x3         segment table
                      0x4         Page table
                      0x8         user instruction
                      0x9         supervisor instruction
                      0xa         user data
                      0xb         supervisor data
                      0xc         flush segment
                      0xd         flush page
                      0xe         flush context



Sun Release 4.1     Last change: 1 July 1990                    9






MONITOR(8S)           MAINTENANCE COMMANDS            MONITOR(8S)



                      0xf         cache data

     t [_p_r_o_g_r_a_m] (Sun-3 systems only)
                 Trace the indicated standalone  _p_r_o_g_r_a_m.   Works
                 only  with programs that do not affect interrupt
                 vectors.

     u [ _e_c_h_o ]
     u [ _p_o_r_t ] [ _o_p_t_i_o_n_s ] [ _b_a_u_d__r_a_t_e ]
     u [ u ] [ _v_i_r_t_u_a_l__a_d_d_r_e_s_s ]
                 With no arguments, display the current I/O  dev-
                 ice  characteristics  including:  current  input
                 device, current output device,  baud  rates  for
                 serial  ports  A  and B, an input-to-output echo
                 indicator, and virtual addresses of mapped  UART
                 devices.   With  arguments, set or configure the
                 current  I/O  device.   With  the   u   argument
                 (uu...),   set   the   I/O   device  to  be  the
                 _v_i_r_t_u_a_l__a_d_d_r_e_s_s  of  a  UART  device   currently
                 mapped.

                      _e_c_h_o        Can be either e to enable input
                                  to be echoed to the output dev-
                                  ice, or ne,  to  indicate  that
                                  input is not echoed.

                      _p_o_r_t        Assign the indicated _p_o_r_t to be
                                  the  current  I/O device.  _p_o_r_t
                                  can be one of:

                                       a   serial port A
                                       b   serial port B  (except
                                           on Sun386i systems)
                                       k   the  workstation  key-
                                           board
                                       s   the workstation screen

                      _b_a_u_d__r_a_t_e   Any legal baud rate.

                                  _o_p_t_i_o_n_s can be any  combination
                                  of:

                                       i   input
                                       o   output
                                       u   UART
                                       e   echo input to output
                                       ne  do not echo input
                                       r   reset indicated serial
                                           port  (a  and  b ports
                                           only)

                                  If either a or b  is  supplied,



Sun Release 4.1     Last change: 1 July 1990                   10






MONITOR(8S)           MAINTENANCE COMMANDS            MONITOR(8S)



                                  and  no  _o_p_t_i_o_n_s are given, the
                                  serial  port  is  assigned  for
                                  both input and output.  If k is
                                  supplied with no options, it is
                                  assigned  for input only.  If s
                                  is supplied with no options, it
                                  is assigned for output only.

     v  _v_i_r_t_u_a_l__a_d_d_r_e_s_s_1  _v_i_r_t_u_a_l__a_d_d_r_e_s_s_2  [_s_i_z_e]    (Sun-3  and
                 Sun-4 systems only)
                 Display the contents of _v_i_r_t_u_a_l__a_d_d_r_e_s_s_1 (lower)
                 _v_i_r_t_u_a_l__a_d_d_r_e_s_s_2  (higher)  in the format speci-
                 fied by _s_i_z_e:
                      b   byte format (the default)
                      w   word format
                      l   long word format

                 Enter return to pause for viewing; enter another
                 return character to resume the display.  To ter-
                 minate the display at any time, press the  space
                 bar.

                 For example, the following command displays  the
                 contents  of  virtual address space from address
                 0x1000 to 0x2000 in word format:

                           v 1000 2000 W

     w  [_v_i_r_t_u_a_l__a_d_d_r_e_s_s][_a_r_g_u_m_e_n_t]   (Sun-3  and  Sun-4  systems
                 only)
                 Set the execution vector to a  predetermined  or
                 default routine.  Pass _v_i_r_t_u_a_l__a_d_d_r_e_s_s and _a_r_g_u_-
                 _m_e_n_t to that routine.

                 To set up a predetermined routine to jump to,  a
                 user   program  must,  prior  to  executing  the
                 monitor's w command,  set  the  variable  *romp-
                 >v_vector_cmd to be equal to the virtual address
                 of the desired routine.  Predetermined  routines
                 need not necessarily return control to the moni-
                 tor.

                 The default routine,  defined  by  the  monitor,
                 prints the user-supplied _v_e_c_t_o_r according to the
                 format supplied in _a_r_g_u_m_e_n_t.  This format can be
                 one of:

                      %x  hexadecimal
                      %d  decimal

     x    (Sun-3 and Sun-4 systems only)
                 Display  a  menu  of  extended   tests.    These



Sun Release 4.1     Last change: 1 July 1990                   11






MONITOR(8S)           MAINTENANCE COMMANDS            MONITOR(8S)



                 diagnostics  permit  additional  testing of such
                 things as the I/O port connectors, video memory,
                 workstation memory and keyboard, and boot device
                 paths.

     yc _c_o_n_t_e_x_t__n_u_m_b_e_r   (Sun-4 systems only)
     yp|s _c_o_n_t_e_x_t__n_u_m_b_e_r _v_i_r_t_u_a_l__a_d_d_r_e_s_s
                 Flush the indicated context,  context  page,  or
                 context segment.
                      c  flush context _c_o_n_t_e_x_t__n_u_m_b_e_r
                      p  flush    the    page    beginning     at
                         _v_i_r_t_u_a_l__a_d_d_r_e_s_s      within      context
                         _c_o_n_t_e_x_t__n_u_m_b_e_r
                      s  flush   the   segment    beginning    at
                         _v_i_r_t_u_a_l__a_d_d_r_e_s_s      within      context
                         _c_o_n_t_e_x_t__n_u_m_b_e_r

systems only)
     z [_n_u_m_b_e_r] [_b_r_e_a_k_p_o_i_n_t__v_i_r_t_u_a_l__a_d_d_r_e_s_s [_t_y_p_e]  [_l_e_n]]    (Sun386i
                 Set or reset breakpoints for debugging.  With no
                 arguments, this command  displays  the  existing
                 breakpoints.  The  _n_u_m_b_e_r  argument  is a values
                 from 0 to  3,  corresponding  to  the  processor
                 debug  registers,  DR0 to DR3, respectively.  Up
                 to 4 distinct breakpoints can be  specified.  If
                 _n_u_m_b_e_r is not specified then the monitor chooses
                 a         breakpoint         number.         The
                 _b_r_e_a_k_p_o_i_n_t__v_i_r_t_u_a_l__a_d_d_r_e_s_s   argument  specifies
                 the breakpoint address. The _t_y_p_e argument can be
                 one of:

                      x   Instruction Execution  breakpoint  (the
                          default)
                      m   for Data Write only breakpoint
                      r   Data Reads and Writes only breakpoint.

                 The _l_e_n argument can be one  of:  `b',  `w',  or
                 `l',   corresponding  to  the  breakpoint  field
                 length of  byte,  word,  or  long-word,  respec-
                 tively.   The  default is `b'.  Since the break-
                 points are set  in  the  on-chip  registers,  an
                 instruction breakpoint can be placed in ROM code
                 or in code  shared  by  several  tasks.  If  the
                 _n_u_m_b_e_r    argument    is   specified   but   not
                 _b_r_e_a_k_p_o_i_n_t__v_i_r_t_u_a_l__a_d_d_r_e_s_s,  the   corresponding
                 breakpoint is reset.

     z [_v_i_r_t_u_a_l__a_d_d_r_e_s_s]   (Sun-3 systems only)
                 Set  a  breakpoint  at  _v_i_r_t_u_a_l__a_d_d_r_e_s_s  in  the
                 address space selected by the s command.





Sun Release 4.1     Last change: 1 July 1990                   12






MONITOR(8S)           MAINTENANCE COMMANDS            MONITOR(8S)



FILES
     /vmunix
SEE ALSO
     boot(8S), eeprom(8S)
     _O_p_e_n _P_R_O_M _T_o_o_l_k_i_t _U_s_e_r'_s _G_u_i_d_e


















































Sun Release 4.1     Last change: 1 July 1990                   13



