Changeset 380 for trunk/kernel/kern


Ignore:
Timestamp:
Aug 14, 2017, 6:31:25 PM (7 years ago)
Author:
alain
Message:

Remove the generic kernel/kern/do_exception files to handle exceptions in HAL.
The HAL call only the vmm_handle_page_fault() function if required.

Location:
trunk/kernel/kern
Files:
2 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/kern/core.c

    r367 r380  
    7171                    uint32_t * tm_us )
    7272{
    73         *tm_s  = (core->ticks_nr*CONFIG_SCHED_TICK_PERIOD)/1000;
    74         *tm_us = (core->ticks_nr*CONFIG_SCHED_TICK_PERIOD*1000)%1000000;
     73        *tm_s  = (core->ticks_nr*CONFIG_SCHED_TICK_MS_PERIOD)/1000;
     74        *tm_us = (core->ticks_nr*CONFIG_SCHED_TICK_MS_PERIOD*1000)%1000000;
    7575}
    7676
     
    158158}
    159159
    160 
    161 /* deprecated [AG] july 20017
    162 ///////////////////////////////////////////////////
    163 void core_set_irq_vector_entry( core_t   * core,
    164                                 uint32_t   irq_type,
    165                                 uint32_t   irq_id,
    166                                 chdev_t  * chdev )
    167 {
    168         if     ( irq_type == WTI_TYPE ) core->wti_vector[irq_id] = chdev;
    169         else if( irq_type == HWI_TYPE ) core->hwi_vector[irq_id] = chdev;
    170         else                            core->pti_vector[irq_id] = chdev;
    171 }
    172 */
  • trunk/kernel/kern/kernel_init.c

    r337 r380  
    11221122    }
    11231123
    1124     // each core activates its private TICK IRQ
    1125     dev_pic_enable_timer( CONFIG_SCHED_TICK_PERIOD );
     1124    // each core activates its private TICK IRQ (number of ticks)
     1125    dev_pic_enable_timer( CONFIG_SCHED_TICKS_PER_QUANTUM );
    11261126
    11271127    // each core jump to idle thread
  • trunk/kernel/kern/process.c

    r374 r380  
    627627    parent_pid = hal_remote_lw( XPTR( parent_cxy , &parent_ptr->pid ) );
    628628
    629     exec_dmsg("\n[INFO] %s : thread %x on core[%x,d] enters for path = %s\n",
    630     __FUNCTION__, CURRENT_THREAD->trdid, local_cxy, CURRENT_THREAD->core->lid, path );
     629    exec_dmsg("\n[INFO] %s : thread %x on core[%x,%d] enters for path = %s\n",
     630    __FUNCTION__, CURRENT_THREAD->trdid, local_cxy, CURRENT_THREAD->core->lid , path );
    631631
    632632    // create new process descriptor
     
    654654    process_reference_init( process , pid , parent_xp );
    655655
    656     exec_dmsg("\n[INFO] %s : thread %x on core[%x,d] created process %x / path = %s\n",
     656    exec_dmsg("\n[INFO] %s : thread %x on core[%x,%d] created process %x / path = %s\n",
    657657    __FUNCTION__, CURRENT_THREAD->trdid, local_cxy, CURRENT_THREAD->core->lid, pid, path );
    658658
Note: See TracChangeset for help on using the changeset viewer.