OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_52/] [or1ksim/] [tick/] [tick.c] - Diff between revs 561 and 600

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 561 Rev 600
Line 67... Line 67...
  if ((ttcr & SPR_TTCR_PERIOD) == (ttmr & SPR_TTMR_PERIOD)) {
  if ((ttcr & SPR_TTCR_PERIOD) == (ttmr & SPR_TTMR_PERIOD)) {
    int mode = (ttmr & SPR_TTMR_M) >> 30; /* CZ 04/09/01 */
    int mode = (ttmr & SPR_TTMR_M) >> 30; /* CZ 04/09/01 */
 
 
    if (ttmr & SPR_TTMR_IE) {
    if (ttmr & SPR_TTMR_IE) {
      setsprbits(SPR_TTMR, SPR_TTMR_IP, 1);
      setsprbits(SPR_TTMR, SPR_TTMR_IP, 1);
      report_interrupt(config.tick.irq);
      if ((mfspr(SPR_SR) & SPR_SR_TEE) == SPR_SR_TEE)
 
        except_handle(EXCEPT_TICK, 0);
    }
    }
 
 
    /* Handle the modes properly.. CZ 04/09/01 */
    /* Handle the modes properly.. CZ 04/09/01 */
    switch(mode)
    switch(mode)
      {
      {

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.