LibBSD | arm64/broadcom/genet/if_genet.c (Raspberrypi4b): allow build for 32-bit x86 (!130)

Pavel Pisa (@ppisa) gitlab at rtems.org
Sat Mar 21 09:45:57 UTC 2026



Pavel Pisa created a merge request: https://gitlab.rtems.org/rtems/pkg/rtems-libbsd/-/merge_requests/130

Project:Branches: ppisa/lib-bsd:fix-missing-maxaddr_40bit-on-32-bit-tagets to rtems/pkg/rtems-libbsd:7-freebsd-14
Author:   Pavel Pisa



## Summary

arm64/broadcom/genet/if_genet.c (Raspberrypi4b): allow build for 32-bit x86

The BUS_SPACE_MAXADDR_40BIT is not defined for RTEMS configured by

$RTEMS_DIR/waf bspdefaults --rtems-bsps=i386/pc686 -t "$RTEMS_DIR" \
               -o $MY_DIR --prefix /opt/rtems/7

The proposed limitation of to BUS_SPACE_MAXADDR_32BIT solves the problem
when the BUS_SPACE_MAXADDR_40BIT is not defined for (at least some) 32-bit
targets.

The problem is caused because define of BUS_SPACE_MAXADDR_48BIT
has been conditionalized in mainline

/opt/rtems/7/i386-rtems7/pc686/lib/include/machine/bus.h:

#if defined(__amd64__) || defined(PAE)
#define BUS_SPACE_MAXADDR_48BIT 0xFFFFFFFFFFFFULL
#define BUS_SPACE_MAXADDR       0xFFFFFFFFFFFFFFFFULL
#else
#define BUS_SPACE_MAXADDR       0xFFFFFFFF
#endif

Signed-off-by: Pavel Pisa <ppisa at pikron.com>

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/pkg/rtems-libbsd/-/merge_requests/130
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/20260321/291f94b3/attachment-0001.htm>


More information about the bugs mailing list