In memory of Ben “bushing” Byer, who passed away on Monday, February 8th, 2016.

Difference between revisions of "Cafe OS"

From WiiUBrew
Jump to navigation Jump to search
(→‎Libraries: DC is Display Controller and UAC is USB Audio Class)
(Added more descriptions)
Line 8: Line 8:
 
===Libraries===
 
===Libraries===
 
Cafe OS applications dynamically link with system libraries to get access to OS services. These OS services include memory management, graphics, audio, and controller input. All libraries are [[RPL|RPL files]], a modification of the standard ELF format with compressed sections and more Windows-like dynamic linking. The main system libraries are listed below, with some having their own pages of documentation:
 
Cafe OS applications dynamically link with system libraries to get access to OS services. These OS services include memory management, graphics, audio, and controller input. All libraries are [[RPL|RPL files]], a modification of the standard ELF format with compressed sections and more Windows-like dynamic linking. The main system libraries are listed below, with some having their own pages of documentation:
*[[avm.rpl]]
+
*[[avm.rpl]] - Audio/Video Manger
 
*[[camera.rpl]] - Gamepad camera
 
*[[camera.rpl]] - Gamepad camera
 
*[[coreinit.rpl]] - Kernel, memory, and FS
 
*[[coreinit.rpl]] - Kernel, memory, and FS
Line 14: Line 14:
 
*[[dmae.rpl]] - DMA (Direct Memory Access)
 
*[[dmae.rpl]] - DMA (Direct Memory Access)
 
*[[drmapp.rpl]] - Digital Rights Management
 
*[[drmapp.rpl]] - Digital Rights Management
*[[erreula.rpl]]
+
*[[erreula.rpl]] - Error Viewer
 
*[[gx2.rpl]] - Graphics
 
*[[gx2.rpl]] - Graphics
 
*[[h264.rpl]] - Support for H.264
 
*[[h264.rpl]] - Support for H.264
Line 25: Line 25:
 
*[[nlibnss2.rpl]]
 
*[[nlibnss2.rpl]]
 
*[[nn_ac.rpl]] - Nintendo Network Auto Connection
 
*[[nn_ac.rpl]] - Nintendo Network Auto Connection
*[[nn_acp.rpl]]
+
*[[nn_acp.rpl]] - Nintendo Network Account/Access Protection
 
*[[nn_act.rpl]] - Nintendo Network Accounts
 
*[[nn_act.rpl]] - Nintendo Network Accounts
 
*[[nn_aoc.rpl]] - Nintendo Network Add-On Content
 
*[[nn_aoc.rpl]] - Nintendo Network Add-On Content
Line 49: Line 49:
 
*[[nn_vctl.rpl]]
 
*[[nn_vctl.rpl]]
 
*[[nsysccr.rpl]]
 
*[[nsysccr.rpl]]
*[[nsyshid.rpl]]
+
*[[nsyshid.rpl]] - Human Interface Device library
*[[nsyskbd.rpl]]
+
*[[nsyskbd.rpl]] - USB keyboard library
 
*[[nsysnet.rpl]] - BSD sockets
 
*[[nsysnet.rpl]] - BSD sockets
 
*[[nsysuhs.rpl]] - Low-level USB access
 
*[[nsysuhs.rpl]] - Low-level USB access
Line 63: Line 63:
 
*[[swkbd.rpl]] - Onscreen keyboard
 
*[[swkbd.rpl]] - Onscreen keyboard
 
*[[sysapp.rpl]]
 
*[[sysapp.rpl]]
*[[tcl.rpl]]
+
*[[tcl.rpl]] - Texture Core library
*[[tve.rpl]]
+
*[[tve.rpl]] - TV Engine
 
*[[uac.rpl]] - USB audio
 
*[[uac.rpl]] - USB audio
 
*[[uac_rpl.rpl]]
 
*[[uac_rpl.rpl]]
Line 71: Line 71:
 
*[[uvd.rpl]]
 
*[[uvd.rpl]]
 
*[[vpad.rpl]] - Gamepad input
 
*[[vpad.rpl]] - Gamepad input
*[[vpadbase.rpl]]
+
*[[vpadbase.rpl]] - Gamepad base library
 
*[https://github.com/madler/zlib/tree/9712272c78b9d9c93746d9c8e156a3728c65ca72 zlib125.rpl] - ZLIB 1.2.5, functions match official library
 
*[https://github.com/madler/zlib/tree/9712272c78b9d9c93746d9c8e156a3728c65ca72 zlib125.rpl] - ZLIB 1.2.5, functions match official library
  

Revision as of 03:52, 8 April 2015

Cafe OS is the operating system running on the PowerPC in Wii U mode. It consists of the Cafe OS kernel, the executable loader, and system libraries. Unlike on the Wii, where games ran with full hardware access, Wii U applications run under the supervision of the kernel, isolating them from each other. All applications are modified ELFs, as are the libraries themselves, and applications dynamically link with them to gain access to OS services. Cafe OS also contains a few system processes, like the home menu and error handler.

Architecture

Kernel

Loader

Libraries

Cafe OS applications dynamically link with system libraries to get access to OS services. These OS services include memory management, graphics, audio, and controller input. All libraries are RPL files, a modification of the standard ELF format with compressed sections and more Windows-like dynamic linking. The main system libraries are listed below, with some having their own pages of documentation:

Memory Map

  • 0x01000000 - 0x01?????? Loader and system libraries
  • 0x10000000 - 0x10?????? User-mode OS globals
  • 0xe0000000 - 0xe4000000 Some sort of hardware communication area
  • 0xf4000000 - 0xf6000000 Unknown
  • 0xf6000000 - 0xf6800000 Unknown
  • 0xf8000000 - 0xfb000000 Read-only shared data (system fonts mostly)
  • 0xffee0000 - 0xfff20000 Kernel code