Ignore:
Timestamp:
Jul 27, 2017, 12:23:29 AM (7 years ago)
Author:
alain
Message:

1) Introduce independant command fields for the various devices in the thread descriptor.
2) Introduce a new dev_pic_enable_ipi() function in the generic PIC device
3) Fix two bugs identified by Maxime in the scheduler initialisation, and in the sched_select().
4) fix several bugs in the TSAR hal_kentry.S.
5) Introduce a third kgiet segment (besides kdata and kcode) in the TSAR bootloader.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/tsar_mips32/drivers/soclib_nic.c

    r259 r279  
    107107
    108108    // get command arguments
    109     cmd    = thread_ptr->command.nic.cmd;
    110     buffer = thread_ptr->command.nic.buffer;
    111     length = thread_ptr->command.nic.length;
    112     dev_xp = thread_ptr->command.nic.dev_xp;
     109    cmd    = thread_ptr->nic_cmd.cmd;
     110    buffer = thread_ptr->nic_cmd.buffer;
     111    length = thread_ptr->nic_cmd.length;
     112    dev_xp = thread_ptr->nic_cmd.dev_xp;
    113113
    114114    // get local pointer for device
     
    212212            {
    213213                // return chbuf writable
    214                 thread_ptr->command.nic.status = true;
     214                thread_ptr->nic_cmd.status = true;
    215215            }
    216216            else                    // current container not writable
     
    230230                     
    231231                    // return chbuf writable
    232                     thread_ptr->command.nic.status = true;
     232                    thread_ptr->nic_cmd.status = true;
    233233                }
    234234                else                            // next container full     
    235235                {
    236236                    // return chbuf non writable
    237                     thread_ptr->command.nic.status = false;
     237                    thread_ptr->nic_cmd.status = false;
    238238                }
    239239            }
     
    256256            {
    257257                // return chbuf readable     
    258                 thread_ptr->command.nic.status = true;
     258                thread_ptr->nic_cmd.status = true;
    259259            }
    260260            else                        // current container non readable
     
    274274                     
    275275                    // return chbuf readable
    276                     thread_ptr->command.nic.status = true;
     276                    thread_ptr->nic_cmd.status = true;
    277277                }
    278278                else                            // next container empty   
    279279                {
    280280                    // return chbuf non readable
    281                     thread_ptr->command.nic.status = false;
     281                    thread_ptr->nic_cmd.status = false;
    282282                }
    283283            }
Note: See TracChangeset for help on using the changeset viewer.