![Tadpole SPARCbook 3 series Скачать руководство пользователя страница 33](http://html2.mh-extra.com/html/tadpole/sparcbook-3-series/sparcbook-3-series_reference-manual_3192948033.webp)
The SPARC CPU
2-5
Integer Unit
The IU supports both asynchronous traps (interrupts) and synchronous
traps (error conditions and trap instructions). Traps transfer control to an
offset within the trap table. The base address of the table is specified by the
Trap Base Register and the offset is a function of the trap type. Traps are
taken before the current instruction causes any changes visible to the
programmer and can therefore be considered to occur between instructions.
Interrupts from the peripheral devices in SPARCbook 3 are controlled and
prioritized by the SLAVIO.
2.2.4
Memory protection
The SPARC design provides memory protection, essential for smooth
multi-tasking operation. Memory protection prevents user programs from
corrupting the system, other user programs, or themselves.
The IU supports a multi-tasking operating system by providing user and
supervisor modes. Some instructions are privileged and can only be
executed while the processor is in supervisor mode. Changing from user to
supervisor mode requires taking a hardware interrupt or executing a trap
instruction. This instruction execution protection ensures that user
programs cannot accidentally alter the state of the machine with respect to
its peripherals.
2.2.5
IU internal registers
The IU contains working registers (or r registers) and control registers. The
r registers are used for storage by processes, and the control registers are
used to track and control the state of the IU. The r registers are within a
large register file containing one hundred and twenty 32-bit registers. Eight
of these are global registers and are always accessible to a program, while
the remaining registers are accessed through register windows. The way in
which register windows are organized is shown in Figure 2-2.
The register file contains seven register windows, and each window
contains twenty-four working registers. Each register window is divided
into three sections called ins, outs, and locals, with eight registers in each
section. Windows share ins and outs with adjacent windows. The outs of
the previous window are the ins of the current window, and the outs of the
current window are the ins of the next window. The windows form a
circular stack where the outs of the last window are the ins of the first
window.
A current window pointer (CWP) in the processor state register keeps track
of the currently active window. The CWP is decremented when a program
calls a subroutine that causes the processor to make accesses to the next
S3GX_TRMBook Page 5 Friday, September 19, 1997 11:39 am
Содержание SPARCbook 3 series
Страница 1: ...Series Technical Reference Manual 980327 02 3 S3GX_TRMBook Page i Friday September 19 1997 11 39 am...
Страница 8: ...viii S3GX_TRMBook Page viii Friday September 19 1997 11 39 am...
Страница 28: ...1 16 Architecture Overview Microcontroller Subsystem S3GX_TRMBook Page 16 Friday September 19 1997 11 39 am...
Страница 44: ...2 16 The SPARC CPU SBus Controller S3GX_TRMBook Page 16 Friday September 19 1997 11 39 am...
Страница 76: ...5 8 SCSI Controller DMA Support S3GX_TRMBook Page 8 Friday September 19 1997 11 39 am...
Страница 82: ...6 6 Ethernet Interface DMA Support for Network Operations S3GX_TRMBook Page 6 Friday September 19 1997 11 39 am...
Страница 96: ...7 14 PCMCIA Interface Microcontroller Registers S3GX_TRMBook Page 14 Friday September 19 1997 11 39 am...
Страница 146: ...9 28 MODEM Class 2 Fax Command Set S3GX_TRMBook Page 28 Friday September 19 1997 11 39 am...
Страница 180: ...11 30 Display Interface RAMDAC S3GX_TRMBook Page 30 Friday September 19 1997 11 39 am...
Страница 210: ...B 10 Connector Information Removable Hard Drive SCSI Connector S3GX_TRMBook Page 10 Friday September 19 1997 11 39 am...
Страница 216: ...Index vi S3GX_TRMBook Page vi Friday September 19 1997 11 39 am...