
Exception Processing
8-2
MC68030 USER’S MANUAL
MOTOROLA
(Refer to
coprocessor exceptions.) For all other exceptions, internal logic provides the vector number.
This vector number is used in the last step to calculate the address of the exception vector.
Throughout this section, 9 vector numbers are given in decimal notation.
Section 10 Coprocessor Interface Description
for a complete discussion of
For all exceptions other than reset, the third step is to save the current processor context.
The processor creates an exception stack frame on the active supervisor stack and fills it
with context information appropriate for the type of exception. Other information may also
be stacked, depending on which exception is being processed and the state of the processor
prior to the exception. If the exception is an interrupt and the M bit of the status register is
set, the processor clears the M bit in the status register and builds a second stack frame on
the interrupt stack.
The last step initiates execution of the exception handler. The processor multiplies the
vector number by four to determine the exception vector offset. It adds the offset to the value
stored in the vector base register to obtain the memory address of the exception vector.
Next, the processor loads the program counter (and the interrupt stack pointer (ISP) for the
reset exception) from the exception vector table in memory. After prefetching the first three
words to fill the instruction pipe, the processor resumes normal processing at the address in
the program counter. Table 8-1 contains a description of all the exception vector offsets
defined for the MC68030.
Table 8-1. Exception Vector Assignments (Sheet 1 of 2)
Vector
Number(s)
Vector Offset
Assignment
STATUS
Asserted
Hex
000
004
008
00C
010
014
018
01C
020
024
028
02C
030
034
038
03C
Space
SP
SP
SD
SD
SD
SD
SD
SD
SD
SD
SD
SD
SD
SD
SD
SD
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Reset Initial Interrupt Stack Pointer
Reset Initial Program Counter
Bus Error
Address Error
Illegal Instruction
Zero Divide
CHK, CHK2 Instruction
cpTRAPcc, TRAPcc, TRAPV Instructions
Privilege Violation
Trace
Line 1010 Emulator
Line 1111 Emulator
(Unassigned, Reserved)
Coprocessor Protocol Violation
Format Error
Uninitialized Interrupt
—
—
YES
YES
NO
NO
NO
NO
NO
YES
NO
YES
—
NO
NO
YES