RTEMS | counder_yu64 is broken on SMP archs (#5793)

Chris Johns (@chris) gitlab at rtems.org
Fri Oct 2 08:30:39 UTC 2026



Issue created by Chris Johns: https://gitlab.rtems.org/rtems/rtos/rtems/-/work_items/5793

Assignee: Sebastian Huber

## Summary

Running `netstat -i` on an SMP LibBSD build of RTEMS just after booting results in:

```
xcon [/] # netstat -i
Name    Mtu Network        Address               Ipkts  Ierrs  Idrop     Opkts  Oerrs   Coll
cgem0  1500 <Link#1>       72:44:fa:b0:29:da    153687      0      0     86831      0      0
cgem0     - 10.10.5.0/24   10.10.5.70            86733      -      -     48516      -      -
lo0   16384 <Link#2>       lo0                     128      0      0  26324640 13999735  26384
lo0       - ::1/128        ::1                      64      -      -        64      -      -
lo0       - fe80::%lo0/64  fe80::1%lo0               0      -      -         0      -      -
lo0       - 127.0.0.0/8    127.0.0.1                48      -      -        48      -      -
```

It looks like something is not aligned correctly. These calls are used by LibBSD in `if.c` to manage the 64bit counters in a safe way on SMP.

## Steps to reproduce

Run `netstat -i` on a Zynq or ZynqMP SMP system. Verified on Zynq and ZynqMP hardware.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/work_items/5793
You're receiving this email because of your account on gitlab.rtems.org. Unsubscribe from this thread: https://gitlab.rtems.org/-/namespace/49/sent_notifications/5-9hm39lbq5t7ek1ch11107blns-1d/unsubscribe | Manage all notifications: https://gitlab.rtems.org/-/profile/notifications | Help: https://gitlab.rtems.org/help


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20261002/6bc45675/attachment.htm>


More information about the bugs mailing list