Changeset 279 for trunk/kernel/libk


Ignore:
Timestamp:
Jul 27, 2017, 12:23:29 AM (4 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.

Location:
trunk/kernel/libk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/libk/elf.c

    r270 r279  
    191191                        process->vmm.code_vpn_base = start >> CONFIG_PPM_PAGE_SHIFT;
    192192
    193                         elf_dmsg("\n[INFO] %s found CODE vseg / base = %x / size = %x\n",
     193                        elf_dmsg("\n[INFO] %s : found CODE vseg / base = %x / size = %x\n",
    194194                                 __FUNCTION__ , start , mem_size );
    195195                }
     
    199199                        process->vmm.data_vpn_base = start >> CONFIG_PPM_PAGE_SHIFT;
    200200
    201                         elf_dmsg("\n[INFO] %s found DATA vseg / base = %x / size = %x\n",
     201                        elf_dmsg("\n[INFO] %s : found DATA vseg / base = %x / size = %x\n",
    202202                                 __FUNCTION__, start , mem_size );
    203203                }
  • trunk/kernel/libk/remote_fifo.c

    r124 r279  
    4949//////////////////////////////////////////////
    5050error_t remote_fifo_put_item( xptr_t     fifo,
    51                               uint64_t * item,
     51                              uint64_t   item,
    5252                              bool_t   * first )
    5353{
     
    112112
    113113    // copy item to fifo
    114         hal_remote_swd( XPTR( cxy , &ptr->data[ptw] ), *item );
     114        hal_remote_swd( XPTR( cxy , &ptr->data[ptw] ), item );
     115
    115116        hal_fence();
    116117
  • trunk/kernel/libk/remote_fifo.h

    r68 r279  
    4040 *
    4141 * WARNING : the number of slots is statically defined by the global
    42  * configuration parameter CONFIG_REMOTE_FIFO_SLOTS for all fifos, requiring
    43  * 12 * CONFIG_REMOTE_FIFO_SLOTS bytes for each FIFO.
     42 * configuration parameter CONFIG_REMOTE_FIFO_SLOTS for all fifos. requiring
     43 * Each FIFO requires 8 + (12 * CONFIG_REMOTE_FIFO_SLOTS) bytes.
    4444 ***********************************************************************************/
    4545
     
    6767 ************************************************************************************
    6868 * @ fifo    : pointer to the local fifo.
    69  * @ item    : pointer on destination buffer for extracted item.
    70  * @ size    : actual number of bytes in one item.
     69 * @ item    : [out] pointer on buffer for extracted item.
    7170 * @ return  0 on success, EAGAIN if the buffer is empty.
    7271 ***********************************************************************************/
     
    7877 * by an extended pointer.
    7978 * This function gets a write ticket using a remote_atomic_increment on the
    80  * write slot index and waits until the slot is empty, using a descheduling
    81  * policy (without blocking).
     79 * write slot. Then, it waits until the slot is empty, using a descheduling
     80 * policy without blocking.
    8281 ************************************************************************************
    8382 * @ fifo    : extended pointer to the fifo in remote cluster.
    84  * @ item    : pointer on a local buffer containing the item to be stored.
     83 * @ item    : item to be stored.
    8584 * @ first   : [out] true if first item registered in remote fifo.
    8685 * @ return  0 on success / EBUSY if a contention has been detected.
    8786 ***********************************************************************************/
    8887error_t remote_fifo_put_item( xptr_t     fifo,
    89                               uint64_t * item,
     88                              uint64_t   item,
    9089                              bool_t   * first );
    9190
Note: See TracChangeset for help on using the changeset viewer.