RTEMS | Mips malta smp foundation (!1153)

Joel Sherrill (@joel) gitlab at rtems.org
Sun Mar 22 11:56:37 UTC 2026




Joel Sherrill started a new discussion on cpukit/score/cpu/mips/include/rtems/score/cpuimpl.h: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1153#note_146743

 > +  __asm__ volatile (
 > +    ".set push\n"
 > +    ".set mips3\n"
 > +    "1: ll   %0, %2\n"       /* Load and link */
 > +    "   move %1, %3\n"       /* Prepare value */
 > +    "   sc   %1, %2\n"       /* Store conditional */
 > +    "   beqz %1, 1b\n"       /* Retry if failed */
 > +    ".set pop\n"
 > +    : "=&r" (old), "=&r" (temp), "+m" (*target)
 > +    : "r" (value)
 > +    : "memory"
 > +  );
 > +  return old;
 >  }
 >  
 > +//SMP Lock Prototypes  

Space after //

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1153#note_146743
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/20260322/c83657a8/attachment.htm>


More information about the bugs mailing list