Sam Price started a new discussion on 
bsps/microblaze/microblaze_fpga/include/tm27.h: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/980#note_140637

 > +  timer->tlr1 = 1;
 > +  timer->tcsr1 = control | MICROBLAZE_TIMER_TCSR0_LOAD0;
 > +  timer->tcsr1 = control | MICROBLAZE_TIMER_TCSR0_ENT0;
 >  
 > -#define Install_tm27_vector( handler ) \
 > -  do { \
 > -    (void) (handler); \
 > -  } while (0)
 > +  /*
 > +   * Give the one-shot a chance to fire before returning.
 > +   * Empirically, ~7000 nops was the last failing point; doubled to add 
 > margin.
 > +   */
 > +  for ( spin = 0; spin < 14000; ++spin ) {
 > +    __asm__ volatile( "nop" );
 > +  }
 > +}

QEMU would not immediately fire the interrupt,

-- 
View it on GitLab: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/980#note_140637
You're receiving this email because of your account on gitlab.rtems.org.


_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to