I'm trying to open the serial device from the Napalm net driver. Sometimes it works, but some other times it hangs the entire machine right at the call to OpenDevice(). I'm wondering why this is. Here is my garbled code:
MOVEA.L ABSEXECBASE.W,A6 ;080: 2c780004
LEA dos_name+1,A1 ;084: 43f90000033f
MOVEQ #0,D0 ;08a: 7000
JSR _LVOOpenLibrary(A6) ;08c: 4eaefe68
MOVE.L D0,dos_base ;090: 23c000000318
BEQ fail1
JSR debug_puts1
MOVEA.L ABSEXECBASE.W,A6
JSR _LVOCreateMsgPort(A6)
MOVE.L D0,msg_port
BEQ fail2
JSR debug_puts2
MOVEA.L D0,A0
MOVE.L #IOEXTSER_SIZE,D0
JSR _LVOCreateIORequest(A6)
MOVE.L D0,io_request
BEQ fail3
JSR debug_puts3
LEA serial_name,A0
MOVEQ #0,D0
MOVEA.L io_request,A1
MOVEQ #0,D1
JSR _LVOOpenDevice(A6)
TST D0
BNE fail4
JSR debug_puts4