# Hollywood's new half: the bus, the register file, IPC and interrupts Facts from the pinned WiiBrew pages (DOC, tier 3), named per row. WiiBrew marks many of them "[check]" itself; those are flagged here as HYPOTHESIS. Its own pointer for this area is fail0verflow's MINI source (`hollywood.h`), GPL-2.0: a closed box, never opened for this repository ([sources-wii.md](sources-wii.md)). ## Physical memory map (both CPUs' physical view) | Physical | Size | What | Source | | --- | --- | --- | --- | | 0x00000000 | 24 MB | MEM1 (1T-SRAM) | Hardware/Main Memory; Memory map | | 0x08000000 | 3 MB | GX embedded frame buffer, Broadway-mapped at 0xC8000000 | Memory map | | 0x0C000000 | 32 KB | the legacy Flipper registers ("Broadway hardware registers", 0xCC000000 from Broadway) | Memory map ([check] on the page) | | 0x0D000000 | | Hollywood registers as Broadway sees them (0xCD000000 uncached) | Memory map; Hardware/Main Memory | | 0x0D800000 | 0x400 | Hollywood registers, Starlet ("trusted") view | Hardware/Hollywood Registers | | 0x0D0y0000 (y != 0) | | Starlet-private AHB devices: AES 0x0d020000, SHA-1 0x0d030000, EHCI 0x0d040000, OHCI0 0x0d050000, OHCI1 0x0d060000, SDHC 0x0d070000, SDIO/Wi-Fi 0x0d080000, NAND interface (Hardware/NAND Interface) | the device pages | | 0x0D400000 | 96 KB | Starlet SRAM (two banks, A and B), many mirrors | Hardware/Main Memory | | 0x10000000 | 64 MB | MEM2 (GDDR3); IOS keeps the top 12-16 MB | Memory map | | 0xFFF00000-0xFFFFFFFF | | Starlet: SRAM and boot0 mirrors (below). Broadway: the EXI boot stub at 0xFFF00100 | Hardware/Main Memory; Hardware/Broadway | **Address bit 23** (0x00800000, AHB_TRUSTED_OFFSET) selects Starlet's full view of the register file; from Broadway "the state of this bit is irrelevant", forced to zero, so Broadway sees only "the PPC subset" (Hardware/Hollywood Registers). Which registers are in the subset is given per register by the page's "Access" boxes (Broadway: Partial / None / Full / Conditional), and some change with HW_AHBPROT. **Starlet SRAM and boot0 mapping** depends on two switches: HW_BOOT0 (boot0 mapped or not) and HW_SRNPROT's SM bit (the SRAM mirror at 0xFFFE0000). The page draws four maps; boot0 runs from 0xFFFF0000; boot1 runs from 0xFFF00000 and 0x0D400000 at once (compiled for one, called at the other); boot2 and IOS run from 0xFFFF0000 with boot0 unmapped and the mirror on (Hardware/Main Memory). The specification takes the four maps as a table. ## The register file (0x0d800000, Hardware/Hollywood Registers) Grouped; the page lists about 150 registers, many with unknown purpose: - **IPC** 0x000-0x00c (below). **Starlet timer** 0x010 HW_TIMER, 0x014 HW_ALARM. - **Video tweaks** HW_VI1CFG, HW_VIDIM, HW_VISOLID. - **Interrupts** 0x030-0x05c (below), with a watchdog (HW_WDGINTSTS, HW_WDGCFG) and address-error flags (HW_DMAADRINTSTS, HW_CPUADRINTSTS). - **Protection**: HW_SRNPROT (who may reach SRAM: AES, SHA, NAND engine, PPC, USB; the SM mirror; IOPDBGEN), HW_AHBPROT (per-engine access bits for the PPC and for the IOP, plus PPCKERN, which gives the PPC the full register file), HW_AIPPROT (ENAHBIOPI: legacy blocks at Flipper addresses or on the AHB). - **GPIOs**: two banks, GPIOB (Broadway-visible) and GPIO (Starlet), with direction, interrupt level, flags, mask, straps, and HW_GPIO_OWNER (Hardware/Hollywood GPIOs). - **Arbiter** HW_ARB_CFG_M0..MF, CPU, DMA; performance counters (meaning unknown). - **I2C** slave and master registers (the AV encoder). - **HW_COMPAT** (0x180): GameCube compatibility switches (gamecube-pin.md section 2) and DVDVIDEO, which blocks the DVD-video read commands at DICMDBUF0, and PPCBOOT. - **Resets** HW_RESETS (0x194): about 30 reset lines (Starlet, DSP, VI, the legacy I/O blocks, GX, memory, PLLs, Broadway SRESET then HRESET in that order). The board models each line as "the block is held in reset"; the order of release is boot code's. - **Clocks** HW_CLOCKS (SPEED, FX), the PLL registers 0x19c-0x1d8 (CPUCLK_DIV: 3888 MHz VCO divided by 0x10 gives 243 MHz ... by 0x18, 162 MHz; HYPOTHESIS on the page). - **OTP** HW_OTPCMD, HW_OTPDATA ([firmware-keys-nand.md](firmware-keys-nand.md)). - **HW_VERSION** (0x214): 0x11 Hollywood, 0x21 Bollywood (observed values). Board rule: registers whose purpose is unknown are **storage with a recorded reset value of HYPOTHESIS 0**, logged on access, so a test program that touches them is visible. ## IPC (Hardware/IPC) Two 32-bit message registers (HW_IPC_PPCMSG, HW_IPC_ARMMSG) and four flags, X1, X2, Y1, Y2, seen from both control registers in different bit positions: - Broadway may set and clear X1 and X2, and only read and clear (write 1) Y1 and Y2; it enables IRQ 30 from Y1 and Y2 (IY1, IY2). - Starlet is the mirror: Y1 and Y2 are its own, X1 and X2 read and clear; it enables IRQ 31 from X1 and X2 (IX1, IX2). Broadway has no access to HW_IPC_ARMCTRL. - IOS's protocol: X1 "execute command" (PPCMSG points at a 0x40-byte request), Y2 "acknowledge", Y1 "reply in ARMMSG", X2 "relaunch". This is the **one channel** between Broadway and Starlet, plus the memory the requests point at (MEM1/MEM2) and the interrupt lines. In the specification it is a block with two sides, each side touched only from its own CPU's domain. ## The interrupt controller (Hardware/Hollywood IRQs) 32 sources, two flag/mask pairs (one per CPU) plus a Starlet FIQ mask. Flags are set by hardware and cleared by writing 1. Sources: 0 Starlet timer, 1 NAND, 2 AES, 3 SHA-1, 4 EHCI, 5 OHCI0, 6 OHCI1, 7 SDHC, 8 Wi-Fi (SDHC1), 10 GPIO (Broadway), 11 GPIO (Starlet), 15 PI_RESET written with bit 0 clear (MIOS uses it), 17 reset button, 18 DI, 19 SI, 20 EXI, 30 IPC (Broadway), 31 IPC (Starlet); 9, 12-14, 16, 21-29 unknown or reserved. Broadway's masked flags drive legacy PI interrupt 14. Starlet's IRQs go to an "interrupt vector table at the beginning of SRAM" (the page's wording, against the ARM exception vectors at 0xFFFF0000 on Hardware/Starlet: **C2**; both can hold if the vector at 0xFFFF0018 jumps through a table, HYPOTHESIS). ## The Starlet timer (Hardware/Starlet Timer) 32-bit, incremented every 128 Starlet cycles (about 526.7 ns at 243 MHz, wrapping every 37.7 minutes), writable; IRQ 0 when HW_TIMER equals HW_ALARM. One of the few exact timing facts on the Starlet side. ## AHB devices with standard programming models EHCI, OHCI and SDHCI follow their public specifications (USB EHCI 1.0, OHCI 1.0a, the SD Association's Host Controller Simplified Specification): WiiBrew says so and lists the registers (Hardware/USB Host Controller; Hardware/SD Host Controller). Their register files are "Reversed Little Endian" on a big-endian bus: the byte order is a board rule to settle by test (U9).