Opened 14 years ago
Closed 14 years ago
#6269 closed bug (fixed)
[patch] [clang] PANIC: device not found!
Reported by: | kaliber | Owned by: | axeld |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | System/Kernel | Version: | R1/Development |
Keywords: | clang | Cc: | |
Blocked By: | Blocking: | ||
Platform: | All |
Description
Booting haiku kernel built with clang.
"pci/domain" : uint32 : 2097152 (0x200000) PANIC: device not found! Welcome to Kernel Debugging Land... Thread 13 "main2" running on CPU 0 stack trace for thread 13 "main2" kernel stack: 0x81528000 to 0x8152c000 frame caller <image>:function + offset 0 8152baa4 (+ 16) 800fe20a <kernel_x86> arch_debug_stack_trace() + 0x001a 1 8152bab4 (+ 12) 80106fc6 <kernel_x86> arch_debug_call_with_fault_handler() + 0x001b 2 8152bac0 (+ 40) 80078327 <kernel_x86> debug_call_with_fault_handler() + 0x0057 3 8152bae8 (+ 88) 80077f49 <kernel_x86> _Z24kernel_debugger_internalPKcS0_Pcl() + 0x03f9 4 8152bb40 (+ 32) 80078822 <kernel_x86> panic() + 0x0032 5 8152bb60 (+ 48) 81405388 <pci> _Z22pci_device_init_driverP11device_nodePPv() + 0x00f8 6 8152bb90 (+ 32) 800892b8 <kernel_x86> _ZN11device_node10InitDriverEv() + 0x0088 7 8152bbb0 (+ 40) 80089d94 <kernel_x86> _ZN11device_node8RegisterEPS_() + 0x0084 8 8152bbd8 (+ 40) 80088427 <kernel_x86> _Z13register_nodeP11device_nodePKcPK11device_attrPK11io_resourcePS0_() + 0x0147 9 8152bc00 (+ 368) 81405240 <pci> _Z31pci_root_register_child_devicesPv() + 0x0230 10 8152bd70 (+ 40) 80089de5 <kernel_x86> _ZN11device_node8RegisterEPS_() + 0x00d5 11 8152bd98 (+ 40) 80088427 <kernel_x86> _Z13register_nodeP11device_nodePKcPK11device_attrPK11io_resourcePS0_() + 0x0147 12 8152bdc0 (+ 112) 81404ff3 <pci> _Z24pci_root_register_deviceP11device_node() + 0x0073 13 8152be30 (+ 40) 8008a82c <kernel_x86> _ZN11device_node13_RegisterPathEPKc() + 0x005c 14 8152be58 (+ 80) 8008a0e7 <kernel_x86> _ZN11device_node16_RegisterDynamicEPS_() + 0x01c7 15 8152bea8 (+ 40) 80089e13 <kernel_x86> _ZN11device_node8RegisterEPS_() + 0x0103 16 8152bed0 (+ 40) 80088427 <kernel_x86> _Z13register_nodeP11device_nodePKcPK11device_attrPK11io_resourcePS0_() + 0x0147 17 8152bef8 (+ 176) 8008b4c6 <kernel_x86> device_manager_init() + 0x0066 18 8152bfa8 (+ 64) 8005221f <kernel_x86> _Z5main2Pv() + 0x006f 19 8152bfe8 (+ 16) 8006d518 <kernel_x86> _Z28_create_kernel_thread_kentryv() + 0x0018 20 8152bff8 (+2125283336) 8006d560 <kernel_x86> _Z19thread_kthread_exitv() + 0x0000
Attachments (1)
Change History (6)
by , 14 years ago
Attachment: | haiku-clang-pci.patch added |
---|
comment:1 by , 14 years ago
patch: | 0 → 1 |
---|
follow-up: 3 comment:2 by , 14 years ago
comment:3 by , 14 years ago
Replying to stippi:
Thanks! The mismatch is obviously wrong. If you have already researched why replacing ui8 with ui32 is correct rather than B_UINT32_TYPE with B_UINT8_TYPE, please leave a comment.
This http://dev.haiku-os.org/browser/haiku/trunk/src/add-ons/kernel/bus_managers/pci/pci_device.cpp#L107 suggests that domain should be uint32.
Note:
See TracTickets
for help on using tickets.
Thanks! The mismatch is obviously wrong. If you have already researched why replacing ui8 with ui32 is correct rather than B_UINT32_TYPE with B_UINT8_TYPE, please leave a comment.