Ivory Front End Processor (FEP) Architecture & Boot Lifecycle
1. Architectural Philosophy of the Ivory FEP
Unlike the older Symbolics 3600 family (which used a separate Motorola 68000 Front End Processor board to supervise the Lisp CPU), on the Ivory architecture, the Front End Processor is executed natively by the Ivory processor itself.
When an XL1200 powers on or resets, the Ivory CPU runs in FEP Mode (TRAP-MODE-FEP, Mode 3 in the Control Register), executing 40-bit Ivory instructions out of unmapped Zone 31 RAM (VMA = PMA, stripping bits <31:27>). The FEP provides:
- Power-on hardware probing (Merlin-II PIT, MK48T02 NVRAM/RTC, IO0 ID ROM, monochrome VRAM, SCN68562 DUSCC + 8237A DMA console/serial, ESDI, WD33C93A SCSI).
- Interactive Device PROM menu for selecting SCSI disk, CD-ROM, or tape boot units.
- The FEP Filesystem (
FEPFS) driver (LABL,FEPD,FEPFheaders, 1,280-byte pages) and ISO 9660 CD-ROM bootstrap. - Dynamic command overlay execution (
.flodmodules mapped at0xF8001100). - Virtual memory initialization (Page Hash Table in Zones 1..30) and world loading (
.ilod) for Genera 8.3.
flowchart TD
S0["Stage 0: Wired Boot Comm Area (0xFFFE0000) & IFEP promJ Unpack<br/>115988 (lo) || 115989 (hi) -> 25,068 words at 0xF8001000..0xF80071F2"]
S1["Stage 1: Device PROM (Entry 0xF8007162, TRAP-MODE-FEP)<br/>Hardware probe, VRAM banner, Space menu (DUSCC+8237A) or ~7s auto-boot"]
S2["Stage 2: WD33C93A SCSI (0x44015000..B800) & Kernel Load<br/>FEP unit = 7 + target_id; reads 1280B LABL or 2048B ISO 9660 CD-ROM<br/>Unpacks 20-byte chunk kernel.fep -> FEP Command:"]
S3["Stage 3: Overlays (.flod @ 0xF8001100), Load World (.ilod) & Start<br/>UID check -> PHT setup -> TRAP-MODE-EMULATOR -> Genera 8.3"]
SH["Clean Shutdown: FEP Command: Shutdown -> *BOOT-SPY-PC* (0xFFFE0010)<br/>Executes Stage-0 OP_HALT vector"]
S0 --> S1 --> S2 --> S3
S2 --> SH
S3 -.->|"Halt / Return to FEP"| S22. Stage 1: Boot PROM (IFEP promJ) & Interactive Device PROM
2.1 Unpacking & Wired Boot Communication Area
- Two-Chip EPROM Container: The physical 128 KiB Boot PROM (
115988low 64 KiB ‖115989high 64 KiB) holds a checksummedIFEP promJcontainer (emu/src/loader.c). Stage-0 unpacks its two sections into Zone 31 RAM:- Section 0:
0xF8001088..0xF80071F2(24,938 words) - Section 1:
0xF8001000..0xF8001082(130 words) - Entry point:
0xF8007162(Even phase).
- Section 0:
- Wired Boot Communication Area (
0xFFFE0000/ PMA0x07FE0000, 64 words):- Populated before entry (
emu/src/mem.c) with board parameters,*BOOT-SPY-PC*(0xFFFE0004-> Stage-0 halt vector0xFFFE0010..0xFFFE0012), and the Merlin Main Board ID ROM at+0x20..+0x2F(#o777400040, mirrored at+0x30..+0x3F/#o777400060) encoding the 32-bit LE serial number and 16-bit LE manufacture date.
- Populated before entry (
- Hardware Probing:
- Control Register: Starts in
TRAP-MODE-FEP(Mode 3) with virtual memory translation disabled in Zone 31. - Motherboard & I/O Board 0 (
DTP-PHYSICAL-ADDRESS):0x08000000: Intel 82C54 Programmable Interval Timer (PIT)0x09000000: Mostek MK48T02 2 KiB NVRAM & real-time clock (holds boot options and Ethernet MAC atnvram[0x20..0x25])0x0A000000..0x0A00000C: Merlin LEDs, cache control, and interrupt control registers0x40000000: IO0 64 KW shared DMA SRAM0x44016000: IO0 ID ROM (part number, serial, revision, MAC address, monitor type, checksum)0x48000000: 1152×896 monochrome console VRAM (2048-pixel hardware stride)0x44017000/0x44017100: Signetics SCN68562 DUSCC dual-channel UART (Channel A = console/keyboard/mouse SLB stream, Channel B = bulkhead RS-232)0x44017200/0x44017300: Intel 8237A DMA Controller servicing DUSCC RX/TX streams into IO0 SRAM
- Control Register: Starts in
2.2 Device PROM Countdown & Interactive Menu
- Once VRAM and the DUSCC/8237A console path are active, Device PROM prints the XL1200 boot banner and starts a ~7-second auto-boot countdown.
- Pressing
Space(delivered as an SLB key packet over DUSCC Ch.A + 8237A RX DMA) interrupts the countdown and enters the interactive Device PROM menu, allowing the operator to select an alternate SCSI boot device (such as the Genera 8.3 installation CD-ROM on SCSI target 4 /CART11:).
3. Stage 2: WD33C93A SCSI Boot & FEP Kernel Loading
3.1 Controller Registers & Unit Numbering
- WD33C93A SCSI Registers (
emu/src/scsi_wd33c93.c):- Control register: PMA
0x44015000(#o10400250000) - Polled register write / read: PMA
0x44017800/0x44017900 - DMA start/wrap, overrun, trigger, and counter: PMA
0x4401A000,0x4401A800,0x4401B000,0x4401B800 - 32 KiB DMA SRAM ring buffer: PMA
0x40005000(IO0 SRAM + #o50000), supporting multi-chunkcommand-phase = 0x45continuations for transfers larger than 32 KiB (such as 64 KiB ISO 9660 reads).
- Control register: PMA
- FEP Unit Numbering: On Merlin-II, SCSI target IDs
0..6map to FEP units7 + target_id:- Target 0 ->
FEP7:(primary system disk, 1,280 bytes/sector) - Target 1..3, 5..6 ->
FEP8:..FEP10:,FEP12:..FEP13:(extra disks or SIMH.tapsequential tapes) - Target 4 ->
CART11:(default SCSI CD-ROM, 2,048 bytes/sector)
- Target 0 ->
3.2 Booting from Disk (LABL) or CD-ROM (ISO 9660)
- SCSI Hard Disk (
FEP7:):- Device PROM issues
READ (6)/READ (10)for block 0 (1,280 bytes). - Verifies native XL1200 little-endian magic
"LABL"(note: big-endian MacIvory"LBAL"disks must first be converted withivory-fep-convert; see MacIvory vs. XL1200 FEP). - Extracts geometry (
ncylindersat word 5,nheadsat word 6,npages_per_trackat word 7),root_directory_dpn(word 48), andfep_dpn(word 53, disk page number of the installedkernel.fepheader).
- Device PROM issues
- SCSI CD-ROM (
CART11:):- Reads 2,048-byte ISO 9660 sectors to locate the bootable
IFEP-Kernel/kernel.fepimage for clean installation (Disk Restore; see Genera 8.3 CD-ROM Install Guide).
- Reads 2,048-byte ISO 9660 sectors to locate the bootable
- 20-Byte Chunk Unpacking (
kernel.fep):- Each 1,280-byte FEPFS page holds 64 chunks of 20 bytes (4 tag/CDR bytes + 4 little-endian 32-bit data words = 4 Ivory words = 256 words/page).
- Device PROM unpacks
kernel.fepinto Zone 31 RAM and transfers control to the resident FEP kernel, which prints theFEP Command:prompt.
4. Stage 3: .flod Overlays, World Loading, Genera Launch & Shutdown
4.1 Dynamic Overlay Window (0xF8001100)
To keep the resident kernel compact, FEP commands (Load World, Disk Format, Disk Restore, Start, Debug, Show Configuration, etc.) live in dynamically loaded .flod overlay modules on FEP7::
- All overlays load into the shared Zone 31 window starting at
0xF8001100(0o37000010400). - Before executing an overlay, the FEP kernel verifies the 64-bit Kernel Build Compatibility UID at header offset
16..23(5c3931aef3e75a93in Genera 8.3) and validates each section's 32-bit trailer checksum.
4.2 Loading Genera 8.3 (.ilod) & Entering TRAP-MODE-EMULATOR
- Paging Files:
loaders.flodbinds paging partitions (Declare Paging Files). - World Loading:
Load Worldreads the.ilodworld image fromFEP7:(or LMFS), populates physical RAM pages, and builds the Page Hash Table (PHT) in wired memory to map virtual Zones1..30. - Lisp Launch:
Start(inlisp.flod/loaders.flod) transitions the Control Register trap mode fromTRAP-MODE-FEP(Mode 3) toTRAP-MODE-EMULATOR(Mode 0), enables hardware paging and periodic interrupts (2.5 ms timer), and enters the Genera 8.3 initial process.
4.3 Clean Shutdown (*BOOT-SPY-PC*)
At FEP Command:, executing Shutdown invokes the Stage-0 pointer stored in *BOOT-SPY-PC* (0xFFFE0004 -> 0xFFFE0010), landing on the Stage-0 OP_HALT halt vector at 0xFFFE0010..0xFFFE0012 (+0 for clean shutdown / Remote Debugger, +2 for IFEP fatal-trap halt). The emulator halts cleanly without spinning or faulting.
See Also
- Boot PROM Specification
- FEP Boot ROM Structure
- IFEP Binary File Formats & Command Catalog
- Genera 8.3 CD-ROM Install Guide
- Peripherals & Backends (
docs/emulator/peripherals-and-backends.md)
- Intel 8237A —
intel_8237A_dmac.pdf - Intel 82C54 —
intel_82C54_pit.pdf - Signetics SCN68562 / SCN26562 —
signetics_1991_IC019_data_comm_SCN68562.pdf(mirror) - Mostek MK48T02 / ST M48T02 —
st_M48T02_MK48T02_timekeeper.pdf - Western Digital WD33C93A —
wd_WD33C93A_datasheet_and_appnotes_1990.pdf(mirror) - Western Digital WD33C93A —
wd_WD33C93A_scsi_datasheet.pdf(mirror)