Skip to content

Commit

Permalink
Loader: Service ldr:ro on <= 2.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
SciresM committed Apr 26, 2018
1 parent fe2f227 commit 977a51e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions stratosphere/loader/source/ldr_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include "ldr_process_manager.hpp"
#include "ldr_debug_monitor.hpp"
#include "ldr_shell.hpp"
#include "ldr_ro_service.hpp"

extern "C" {
extern u32 __start__;
Expand Down Expand Up @@ -83,6 +84,10 @@ int main(int argc, char **argv)
server_manager->add_waitable(new ServiceServer<ProcessManagerService>("dbg:pm", 1));
server_manager->add_waitable(new ServiceServer<ShellService>("dbg:shel", 3));
server_manager->add_waitable(new ServiceServer<DebugMonitorService>("dbg:dmnt", 2));
if (!kernelAbove300()) {
/* On 1.0.0-2.3.0, Loader services ldr:ro instead of ro. */
server_manager->add_waitable(new ServiceServer<RelocatableObjectsService>("dbg:ro", 0x20));
}

/* Loop forever, servicing our services. */
server_manager->process();
Expand Down

0 comments on commit 977a51e

Please sign in to comment.