[haiku-commits] haiku: hrev46083 - src/system/kernel/device_manager

  • From: ithamar@xxxxxxxxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 17 Sep 2013 05:55:45 +0200 (CEST)

hrev46083 adds 1 changeset to branch 'master'
old head: 00e13e215e687183d8192b339232c941bddb5c8f
new head: f2479c22a8fc50b3086c63d2c823621d39c183ba
overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=f2479c2+%5E00e13e2

----------------------------------------------------------------------------

f2479c2: 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 ;-)

                          [ Ithamar R. Adema <ithamar@xxxxxxxxxxxxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev46083
Commit:      f2479c22a8fc50b3086c63d2c823621d39c183ba
URL:         http://cgit.haiku-os.org/haiku/commit/?id=f2479c2
Author:      Ithamar R. Adema <ithamar@xxxxxxxxxxxxxxxxxxx>
Date:        Tue Sep 17 03:50:05 2013 UTC

----------------------------------------------------------------------------

1 file changed, 3 insertions(+), 1 deletion(-)
src/system/kernel/device_manager/device_manager.cpp | 4 +++-

----------------------------------------------------------------------------

diff --git a/src/system/kernel/device_manager/device_manager.cpp 
b/src/system/kernel/device_manager/device_manager.cpp
index e73c025..5de0b31 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;
 }
 


Other related posts:

  • » [haiku-commits] haiku: hrev46083 - src/system/kernel/device_manager - ithamar