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/hal/tsar_mips32/drivers
Files:
2 edited

Legend:

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

    r337 r380  
    491491    uint32_t * base = soclib_pic_xcu_base();
    492492
    493     // set period value in XCU
    494     base[(XCU_PTI_PER << 5) | lid] = period;
     493    // set period value in XCU (in cycles)
     494    uint32_t cycles = period * SOCLIB_CYCLES_PER_MS * CONFIG_SCHED_TICK_MS_PERIOD;
     495    base[(XCU_PTI_PER << 5) | lid] = cycles;
    495496
    496497    // enable PTI in local XCU controller
  • trunk/hal/tsar_mips32/drivers/soclib_pic.h

    r279 r380  
    9090#define SOCLIB_MAX_PTI         16
    9191
     92#define SOCLIB_CYCLES_PER_MS   1000    // for a SystemC virtual prototype
     93
    9294/******************************************************************************************
    9395 * This define the registers offsets for the  external SOCLIB_IOPIC component.
     
    231233 * The <period> argument define the number of cycles between IRQs.
    232234 ******************************************************************************************
    233  * @ period      : number of cycles between IRQs.
     235 * @ period      : number of ticks between IRQs.
    234236 *****************************************************************************************/
    235237void soclib_pic_enable_timer( uint32_t period );
Note: See TracChangeset for help on using the changeset viewer.