On 04/02/2014 10:40 AM, Bob Stewart wrote: > I'm porting the musb driver code from Linux, using the 14.02 release of > Genode. Basically, I'm using the main.cc code in dde-linux/src/lib/usb > to start the usb subsystem and usb port drivers. The main.cc code is > essentially unchanged and the start_usb_driver function is identical to > the release code. > > When running the executible containing this code a page fault occurs > when _run is called in Routine::main(). The reason appears to be the > schedule() function returns a pointer to 0x0 it got from _next which was > returned from _list. The pointer in in _list appears to have been > removed at the start main(). It looks to me like the code in main.cc in > src/lib/usb would fail for any usb driver code. What am I missing? > > Thanks, > Bob Stewart > > ------------------------------------------------------------------------------ > _______________________________________________ > Genode-main mailing list > Genode-main@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/genode-main > Appears to be related to not including a call to subsys_usb_init() which I had commented out inadvertently. Not sure why that is the case but I'll figure it out. With that call included, main() now runs as expected.
Thanks, Bob Stewart ------------------------------------------------------------------------------ _______________________________________________ Genode-main mailing list Genode-main@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/genode-main