1 Aug 2005 11:04
Re: using usb HID under netBSD 2.0.2
lepingouin.tux <lepingouin.tux <at> laposte.net>
2005-08-01 09:04:38 GMT
2005-08-01 09:04:38 GMT
Michael wrote: >Hello, > > > >>There are lots of mailing list for netbsd and sorry if it's not the >>good list ! >> >> > >We'll see... > > > >>I installed netbsd 2.0.2 with the iso cd and I want to make an >>application to read and write on USB-HID device. >> >>I read, for use HID devices I have to use the device file uhidx ! >> >> > >... with x being a number of some sort. See man uhid and man uhidev. > > > >>But netbsd seems to not reconize my device, and i have no usb >>informations under dmesg !! >> >>(Continue reading)
> Actually, the segment registers look normal for NetBSD purposes (ignore
> the upper bits of what gdb says they are).
>
> I'm not quite sure what gdb disassembles as "jmp ds:XXXXXX". It might
> just be a plain pointer jump, with the pointer being at 0xc0a5d548. What
> is the value at address 0xc0a5d548? What are the bytes in the jmp
> instruction?
I'm not sure how many bytes are in the jump instruction, is this what you
wanted?
(gdb) x/i $pc
0xc0a5d410 <drv_data+252356>: jmp ds:0xc0a5d548
(gdb) x/8x $pc
0xc0a5d410 <drv_data+252356>: 0xd54825ff 0x25ffc0a5 0xc0a5d540
0xd52425ff
0xc0a5d420 <drv_data+252372>: 0x25ffc0a5 0xc0a5d4a4 0x00000000
0x00000000
(gdb)
Here's everything I can think of to find out what's at that address:
(gdb) x/8i 0xc0a5d548
0xc0a5d548 <drv_data+252668>: aam 0x7f
0xc0a5d54a <drv_data+252670>: add eax,0x0
0xc0a5d54f <drv_data+252675>: add BYTE PTR [eax],al
0xc0a5d551 <drv_data+252677>: add BYTE PTR [eax],al
0xc0a5d553 <drv_data+252679>: add BYTE PTR [eax],al
RSS Feed