Changeset 277 in xtideuniversalbios for trunk/Serial_Server/library/Process.cpp


Ignore:
Timestamp:
Feb 28, 2012, 2:45:48 PM (12 years ago)
Author:
gregli@…
google:author:
gregli@hotmail.com
Message:

Moved the bulk of the serial code to the assembly library, for inclusion in other utilities. Fixed a bug in int13h.asm when floppy support was not enabled that was preventing foreign drives from working properly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Serial_Server/library/Process.cpp

    r258 r277  
    3535        unsigned char baud;
    3636    } inquire;
     37    struct {
     38        unsigned char command;
     39        unsigned char driveAndHead;
     40        unsigned char count;
     41        unsigned char scan;
     42        unsigned short PackedPortAndBaud;
     43    } inquirePacked;
    3744    unsigned char b[514];
    3845    unsigned short w[257];
     
    342349                    localScan = buff.inquire.scan;         // need to do this before the call to
    343350                                                           // img->respondInquire, as it will clear the buff
    344                     img->respondInquire( &buff.w[0], serial->baudRate,
     351                    img->respondInquire( &buff.w[0], buff.inquirePacked.PackedPortAndBaud,
     352                                         serial->baudRate,
    345353                                         ((unsigned short) buff.inquire.port) << 2,
    346354                                         (img == image1 && lastScan) || buff.inquire.scan );
Note: See TracChangeset for help on using the changeset viewer.