On 26/11/2018 14:12, Sebastian Huber wrote:
The local table no longer needs a NULL pointer entry at array index
zero.  Adjust all the object iteration loops accordingly.

I think this is the only problematic change. Previously the local table was organized like this:

Objects_Control *local_table[] = {
  NULL, // Always
  NULL or pointer to object with ID index 1 (the first valid index, index zero is invalid),
  NULL or pointer to object with ID index 2,
  ....
  NULL or pointer to object with ID index maximum
}

Now it is:

Objects_Control *local_table[] = {
  NULL or pointer to object with ID index 1 (the first valid index, index zero is invalid),
  NULL or pointer to object with ID index 2,
  ....
  NULL or pointer to object with ID index maximum
}

This is just a minor space optimization. We could also keep the NULL entry, but it is technically not required.

--
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.hu...@embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.

_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to