RTEMS | powerpc/beatnik: Convert MOTLoad GEV variables into env variables (!1276)

Chris Johns (@chris) gitlab at rtems.org
Thu Jun 18 03:29:58 UTC 2026




Chris Johns commented on a discussion on bsps/powerpc/shared/start/motload-gev.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1276#note_152701

 > +  size_t v = 0;
 > +  memset(var, 0, var_len);
 > +  while (g < gev_len) {
 > +    switch (state) {
 > +    case 's':
 > +      /* Search for the start of the name */
 > +      if (gev[g] == '\0') {
 > +        return -1;
 > +      }
 > +      if (gev[g] != name[0]) {
 > +        ++g;
 > +        break;
 > +      }
 > +      state = 'n';
 > +      n = 0;
 > +      /* fallthru */

Sure. 

By the way that macro is broken. You cannot add a comment to a define like it has so the last case needs to be a `#error`.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1276#note_152701
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/20260618/e260fd6c/attachment-0001.htm>


More information about the bugs mailing list