Loader: Service ldr:ro on <= 2.3.0

This commit is contained in:
Michael Scire 2018-04-26 16:50:43 -06:00
parent fe2f227dfc
commit 977a51edb0

View File

@ -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__;
@ -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();