[PATCH v2 0/3] [rtems-libbsd] Fix compilation for i386

Jan Sommer jan.sommer at dlr.de
Wed Feb 5 15:56:43 UTC 2020


Hello,

I assembled a patch set which enabled building rtems-libbsd for i386-based BSPs again (currently without dev_nic_e1000 enabled).

It's my first patch set for rtems-libbsd, but I tried to follow the contribute guidelines as close as possible

I also have a similar patchset for amd64 in preparation which I can finalize after this one has been merged.

Changes in Version 2:
- Updated ifdef in mbuf.h to remove "pad" only if __rtems__ && __i386__
- Added missing ifdef in legacy.c


Best regards,

   Jan


Jan Sommer (3):
  i386: Add missing files from FreeBSD
  i386: Add to build
  i386: Port to RTEMS

 freebsd/sbin/sysctl/sysctl.c                  |   10 +-
 freebsd/sys/dev/pci/pci_pci.c                 |    2 +
 freebsd/sys/i386/include/machine/bus.h        |    6 +
 freebsd/sys/i386/include/machine/cpufunc.h    |    2 +
 freebsd/sys/sys/mbuf.h                        |    2 +
 .../sys/x86/include/machine/intr_machdep.h    |  175 +++
 freebsd/sys/x86/include/machine/legacyvar.h   |   73 ++
 freebsd/sys/x86/include/machine/metadata.h    |   57 +
 freebsd/sys/x86/pci/pci_bus.c                 |    4 +
 freebsd/sys/{i386/i386 => x86/x86}/legacy.c   |   76 +-
 libbsd.py                                     |    7 +-
 rtemsbsd/include/machine/bus.h                |  783 -----------
 rtemsbsd/include/machine/clock.h              |    3 +-
 rtemsbsd/include/x86/bus.h                    | 1109 ++++++++++++++++
 rtemsbsd/include/x86/legacyvar.h              |    1 +
 rtemsbsd/include/x86/metadata.h               |    1 +
 rtemsbsd/include/x86/specialreg.h             | 1143 +++++++++++++++++
 rtemsbsd/include/x86/x86_var.h                |  145 +++
 waf_libbsd.py                                 |    2 +-
 19 files changed, 2788 insertions(+), 813 deletions(-)
 create mode 100644 freebsd/sys/i386/include/machine/bus.h
 create mode 100644 freebsd/sys/x86/include/machine/intr_machdep.h
 create mode 100644 freebsd/sys/x86/include/machine/legacyvar.h
 create mode 100644 freebsd/sys/x86/include/machine/metadata.h
 rename freebsd/sys/{i386/i386 => x86/x86}/legacy.c (88%)
 delete mode 100644 rtemsbsd/include/machine/bus.h
 create mode 100644 rtemsbsd/include/x86/bus.h
 create mode 100644 rtemsbsd/include/x86/legacyvar.h
 create mode 100644 rtemsbsd/include/x86/metadata.h
 create mode 100644 rtemsbsd/include/x86/specialreg.h
 create mode 100644 rtemsbsd/include/x86/x86_var.h

-- 
2.17.1



More information about the devel mailing list