RTEMS | Implement MicroBlaze TM27 via AXI timer (!980)

Sam Price (@TheSamPrice) gitlab at rtems.org
Mon Feb 2 04:18:28 UTC 2026




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.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260202/9e88e96a/attachment.htm>


More information about the bugs mailing list