From f2479c22a8fc50b3086c63d2c823621d39c183ba Mon Sep 17 00:00:00 2001 From: "Ithamar R. Adema" Date: Tue, 17 Sep 2013 05:50:05 +0200 Subject: [PATCH] device_manager: Move init_node_tree to after kdl cmd registration This helps when debugging, since when a driver/module causes a crash while registering with the device manager, you can actually look at the device manager state ;-) --- src/system/kernel/device_manager/device_manager.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/system/kernel/device_manager/device_manager.cpp b/src/system/kernel/device_manager/device_manager.cpp index e73c025e95..5de0b31d71 100644 --- a/src/system/kernel/device_manager/device_manager.cpp +++ b/src/system/kernel/device_manager/device_manager.cpp @@ -2280,7 +2280,6 @@ device_manager_init(struct kernel_args* args) dm_init_io_resources(); recursive_lock_init(&sLock, "device manager"); - init_node_tree(); register_generic_syscall(DEVICE_MANAGER_SYSCALLS, control_device_manager, 1, 0); @@ -2300,6 +2299,9 @@ device_manager_init(struct kernel_args* args) "dump an I/O operation"); add_debugger_command("io_buffer", &dump_io_buffer, "dump an I/O buffer"); add_debugger_command("dma_buffer", &dump_dma_buffer, "dump a DMA buffer"); + + init_node_tree(); + return B_OK; }