XL1200-EMU Symbolics XL1200 Emulator

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, FEPF headers, 1,280-byte pages) and ISO 9660 CD-ROM bootstrap.
  • Dynamic command overlay execution (.flod modules mapped at 0xF8001100).
  • 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"| S2

2. Stage 1: Boot PROM (IFEP promJ) & Interactive Device PROM

2.1 Unpacking & Wired Boot Communication Area

  1. Two-Chip EPROM Container: The physical 128 KiB Boot PROM (115988 low 64 KiB ‖ 115989 high 64 KiB) holds a checksummed IFEP promJ container (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).
  2. Wired Boot Communication Area (0xFFFE0000 / PMA 0x07FE0000, 64 words):
    • Populated before entry (emu/src/mem.c) with board parameters, *BOOT-SPY-PC* (0xFFFE0004 -> Stage-0 halt vector 0xFFFE0010..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.
  3. 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 at nvram[0x20..0x25])
      • 0x0A000000..0x0A00000C: Merlin LEDs, cache control, and interrupt control registers
      • 0x40000000: IO0 64 KW shared DMA SRAM
      • 0x44016000: 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

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-chunk command-phase = 0x45 continuations for transfers larger than 32 KiB (such as 64 KiB ISO 9660 reads).
  • FEP Unit Numbering: On Merlin-II, SCSI target IDs 0..6 map to FEP units 7 + 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 .tap sequential tapes)
    • Target 4 -> CART11: (default SCSI CD-ROM, 2,048 bytes/sector)

3.2 Booting from Disk (LABL) or CD-ROM (ISO 9660)

  1. 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 with ivory-fep-convert; see MacIvory vs. XL1200 FEP).
    • Extracts geometry (ncylinders at word 5, nheads at word 6, npages_per_track at word 7), root_directory_dpn (word 48), and fep_dpn (word 53, disk page number of the installed kernel.fep header).
  2. SCSI CD-ROM (CART11:):
    • Reads 2,048-byte ISO 9660 sectors to locate the bootable IFEP-Kernel / kernel.fep image for clean installation (Disk Restore; see Genera 8.3 CD-ROM Install Guide).
  3. 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.fep into Zone 31 RAM and transfers control to the resident FEP kernel, which prints the FEP 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 (5c3931aef3e75a93 in Genera 8.3) and validates each section's 32-bit trailer checksum.

4.2 Loading Genera 8.3 (.ilod) & Entering TRAP-MODE-EMULATOR

  1. Paging Files: loaders.flod binds paging partitions (Declare Paging Files).
  2. World Loading: Load World reads the .ilod world image from FEP7: (or LMFS), populates physical RAM pages, and builds the Page Hash Table (PHT) in wired memory to map virtual Zones 1..30.
  3. Lisp Launch: Start (in lisp.flod / loaders.flod) transitions the Control Register trap mode from TRAP-MODE-FEP (Mode 3) to TRAP-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

Related Chip Datasheets (6)All Component Datasheets →