title: how to debug a pci device and linux driver
body: <p>I am programming a pci device with verilog and also writing its driver,
  I have probably inserted some bug in the hardware design and when i load the driver with insmod the kernel just gets stuck and doesnt respond. Now Im trying to figure out what's the last driver code line that makes my computer stuck. I have inserted printk in all relevant functions like probe and init but non of them get printed.</p>
  
  <p>What other code is running when i use insmod before it gets to my init function? (I guess the kernel gets stuck over there)</p>