# The processors and how they meet | Processor | Core repository | Role | | --- | --- | --- | | ARM11 MPCore, 2 or 4 CPUs | [arm11-python](../../arm11-python) (Phase 0 tonight) | applications, the kernel and services, GPU command lists | | ARM9 (ARM946E-S by the community's account; U1) | [arm946es-python](../../arm946es-python) (Phase 0), with a 3DS row | Process9: storage, crypto, cartridge; the DS mode's ARM9 | | ARM7TDMI | [arm7tdmi-python](../../arm7tdmi-python) (built) | legacy modes only (GBA, DS, DSi) | | Teak DSP | teak-python (proposed, dsp-teak.md) | sound | | RL78 MCU | none (functional model of its registers: io.md) | power, LEDs, RTC, sensors | | Xtensa in the Wi-Fi module | none (late, functional) | Wi-Fi | How the three ARM cores relate (generations, bus contracts, what each needs for the 3DS): arm11-python's [core-choice.md](../../arm11-python/docs/core-choice.md). ## Reset and start - **Real boot (LLE, player-supplied)**: both boot ROMs start; the ARM9's loads and checks a FIRM image from NAND (or another medium), the ARM11 boot ROM parks CPU1 until a software interrupt 01h and starts CPU0 on the FIRM's ARM11 entry (GBATEK CFG11_MPCORE_BOOTCNT and "3DS ARM11 Interrupts"); New 3DS CPU2/3 are started by CFG11 writes through the boot ROM overlay registers. - **FIRM side-load (no Nintendo code; the homebrew test path)**: the board loads a FIRM image's sections to their addresses (GBATEK "3DS Files - FIRM Format": the section table, an ARM9 and an ARM11 entry point) and starts both CPUs at their entries, with the I/O in the state the boot ROMs would leave it. **What that state is** (CONFIG9/11 values, PXI, the MPU/MMU off or on, clocks, the AES keyslots the boot ROM fills) is unknown U2; a homebrew payload that dumps its first state is the probe that settles it (decision N8). This is the 3DS's "skip-boot", with the same discipline as gameboy-python's: verdicts under skip-boot are recorded as such. - **HLE OS start**: the HLE kernel creates the application process from a decrypted CXI (ExeFS .code, exheader for memory and capabilities, RomFS) and starts it on CPU0 in user mode (firmware-and-keys.md). ## PXI (ARM11 <-> ARM9) Two ends: PXI_SYNC9/CNT9/SEND9/RECV9 at 10008000h and PXI_SYNC11/... at 10163000h. SYNC is 8-bit each way (write-only send byte, unlike the DS), with IRQ bits to the other side (ARM11 interrupts 50h/51h, ARM9 IF bit 12); the FIFO "seem[s] to be exactly same as on NDS" (GBATEK "PXI Registers"), with empty/full status, IRQs and an error bit. Under HLE the ARM9 side (Process9) is part of the OS model and PXI is internal to it. ## ARM11 <-> ARM11 Software interrupts through the distributor's software-interrupt register (17E01F00h) plus shared memory (GBATEK "ARM11-to-ARM11 Messages"); the kernel uses interrupts 04h-0Ah for scheduling and cross-core work (GBATEK's list): under HLE that is the HLE kernel's business. ## ARM11 <-> DSP APBP at 10203000h (data, address, configuration, status, semaphores and masks, three command/reply pairs), enabled by CFG11_DSP_CNT; shared DSP memory; the DSP's AHBM reaching FCRAM (dsp-teak.md). ## ARM11 <-> GPU Register writes and command lists (gpu-pica200.md); completion interrupts 28h-2Dh. ## DMA engines - NDMA (ARM9, 8 channels, DSi-style), XDMA (ARM9, a CoreLink DMA-330: GBATEK "Corelink DMA ..." sections, with its own microcode-like opcode set), CDMA (ARM11, also a DMA-330; a second one on the New 3DS). The DMA-330s execute programs (GBATEK's opcode summary): they are small processors of ARM's design, in the board (not CPUs in the charter's sense: a fixed DMA instruction set, no general computation), modelled from GBATEK and, if Aubrey downloads it, ARM's DMA-330 TRM (DDI 0424, a `manual` pin).