RFC: ugensa(4) driver ported from NetBSD

Mike Tancsa mike at sentex.net
Mon Dec 31 08:53:31 PST 2007


At 11:11 AM 12/31/2007, Mike Tancsa wrote:
>At 07:31 AM 12/31/2007, Mario Sergio Fujikawa Ferreira wrote:
>>Hi,
>>
>>   I wrote a simple port of the NetBSD ugensa(4) driver: USB 
>> generic serial adapter
>>
>>http://www.daemon-systems.org/man/ugensa.4.html
>>
>>   I would like for you to review the "ported" kernel module. The 
>> file can be found at
>

Some more details

Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0x4
fault code              = supervisor read, page not present
instruction pointer     = 0x20:0xc04eb6d3
stack pointer           = 0x28:0xcc5ae958
frame pointer           = 0x28:0xcc5ae988
code segment            = base 0x0, limit 0xfffff, type 0x1b
                         = DPL 0, pres 1, def32 1, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = 847 (cu)
[thread pid 847 tid 100062 ]
Stopped at      usbd_open_pipe_ival+0x13:       movl    0x4(%eax),%eax
db> bt
Tracing pid 847 tid 100062 td 0xc1dfc210
usbd_open_pipe_ival(c1d74390,ffffffff,cc5ae9bc,c04de072,0,...) at 
usbd_open_pipe_ival+0x13
usbd_open_pipe(0,85,0,c1d74390,c1d7a800,...) at usbd_open_pipe+0x24
ucomopen(c1d7a800,c1d76400,0,c2346dd0,cc5ae9f4,...) at ucomopen+0xa2
ttyopen(c1d76400,7,2000,c1dfc210,0,...) at ttyopen+0x286
giant_open(c1d76400,7,2000,c1dfc210,cc5aea50,...) at giant_open+0x73
devfs_open(cc5aea8c,cc5aeb1c,c05ca5a7,c074dbe0,cc5aea8c,...) at 
devfs_open+0x21f
VOP_OPEN_APV(c074dbe0,cc5aea8c,cc5aea84,c1dadaa0,c2346dd0,...) at 
VOP_OPEN_APV+0x42
vn_open_cred(cc5aeb80,cc5aec78,94c,c22ba800,c1e2a750,...) at vn_open_cred+0x487
vn_open(cc5aeb80,cc5aec78,94c,c1e2a750,c22ba800,...) at vn_open+0x33
kern_open(c1dfc210,bfbfed56,0,7,bfbfeb4c,...) at kern_open+0xc4
open(c1dfc210,cc5aecfc,c,16,cc5aed2c,...) at open+0x30
syscall(cc5aed38) at syscall+0x317
Xint0x80_syscall() at Xint0x80_syscall+0x20
--- syscall (5, FreeBSD ELF32, open), eip = 0x28145f1b, esp = 
0xbfbfeb3c, ebp = 0xbfbfeb88 --- 



More information about the freebsd-usb mailing list