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.

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.