1-5 Tasks


In the N64 operating system, a "task" is a process control unit provided by the RSP in the RCP. A task is for the RCP similar to what a thread is for the CPU. However, the addressing scheme and the access methods for tasks processed by the RCP are different from the addressing scheme and access methods for threads processed by the CPU. There are basically two kinds of tasks, an audio task and a graphics task.

To execute a task, you need to set the necessary information for the task execution in the OSTask data structure defined in the N64 operating system. When you execute the task, the process follows these steps:

  1. The CPU stops the RSP.
  2. The CPU transfers boot microcode to IMEM in the RSP.
  3. The CPU transfers the task header to DMEM in the RSP.
  4. The CPU initializes the RSP program counter to zero (0) and releases the RSP stop.
  5. The boot microcode operates on the RSP, transfers the microcode to IMEM, and transfers the necessary data to DMEM.
  6. Execution begins at the GBI or ABI command list pointed to by the data pointer written in the task header.


Figure 1-5-1 RCP task processing