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: uvd.rpl is almost certainly AMD's OVD library)
(→‎Libraries: Identified nsysccr.rpl and uvc.rpl as DRH communication libraries)
Line 48: Line 48:
 
*[[nn_uds.rpl]] - UDS/Local Connection library
 
*[[nn_uds.rpl]] - UDS/Local Connection library
 
*[[nn_vctl.rpl]]
 
*[[nn_vctl.rpl]]
*[[nsysccr.rpl]]
+
*[[nsysccr.rpl]] - DRH communication (input and RPC)
 
*[[nsyshid.rpl]] - Human Interface Device library
 
*[[nsyshid.rpl]] - Human Interface Device library
 
*[[nsyskbd.rpl]] - USB keyboard library
 
*[[nsyskbd.rpl]] - USB keyboard library
Line 68: Line 68:
 
*[[uac_rpl.rpl]]
 
*[[uac_rpl.rpl]]
 
*[[usb_mic.rpl]]
 
*[[usb_mic.rpl]]
*[[uvc.rpl]]
+
*[[uvc.rpl]] - DRH communication (Gamepad camera)
 
*[[uvd.rpl]] - [http://amd-dev.wpengine.netdna-cdn.com/wordpress/media/2012/10/OpenVideo_Decode_API.PDF AMD's OpenVideo Decode library], with some different function names  
 
*[[uvd.rpl]] - [http://amd-dev.wpengine.netdna-cdn.com/wordpress/media/2012/10/OpenVideo_Decode_API.PDF AMD's OpenVideo Decode library], with some different function names  
 
*[[vpad.rpl]] - Gamepad input
 
*[[vpad.rpl]] - Gamepad input

Revision as of 19:06, 9 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