Commit Graph

31964 Commits

Author SHA1 Message Date
Chris Johns
9e8df1fe2f fstest/fsrfsbitmap01: Update RFS bitmap tests to test fixes.
Add tests to check the patches for this ticket exist and are fixed.

Close #3089
2018-04-11 11:51:57 +10:00
Fan Deng
d869c1824a Fill in the correct d_off in rtems_rfs_dir_read.
rtems_rfs_dir_read searches the directory inode's entries list starting
at the specified offset until an empty entry (last entry) is encountered. It
fills in a struct dirent with the name of the entry, length of the name, ino of
the entry, and the absolute offset of the entry in the parent directory's
entries
list.

Unfortunately, the stock implementation of rtems_rfs_dir_read returns a
somewhat arbitrary offset (as dirent::d_off), while
rtems_rfs_dir_lookup_ino always returns the correct offset.

This change fixes that logic so the returned offset is accurate.

Tested by comparing the offset returned in dirent with the result of
rtems_rfs_dir_lookup_ino.
2018-04-11 11:51:57 +10:00
Fan Deng
64908df116 Fixes bitmap allocation accounting logic in rtems-rfs-bitmaps.c
The bitmap allocation accounting logic in rtems-rfs-bitmaps.c is flawed
around control->free. Specifically:

In rtems_rfs_bitmap_map_set():
control->free is only decremented when its corresponding search bit is
toggled. This is wrong and will miss on average 31/32 set updates.

In rtems_rfs_bitmap_map_clear():
control->free is incremented unconditionally.

The correct behavior is:
When updating the map, check if the bit is already set/clear. Only update
control->free when the bit is toggled.

This change enforced the correct behavior.

Tested by inspecting the internal data structure.
2018-04-11 11:51:57 +10:00
Fan Deng
095a807bc3 Reset free count properly in rtems_rfs_bitmap_map_clear_all().
In rtems_rfs_bitmap_map_clear_all(), control->free is set to 'elements',
which is the number of elements in the bitmap. This is incorrect, as
control->free should contain the number of free bits, not elements.

This change fixes the logic and resets control->free to a correct value.
2018-04-11 11:51:57 +10:00
Fan Deng
0c2241c0a9 Make bit addressing consistent in rtems_rfs_group.c
This change fixes https://devel.rtems.org/ticket/3089.

Briefly, rtems_rfs_group.c contains conflicting conversions between
block numbers and group number and bit offset pairs. This caused the
actual bit stored on the bitmask to be one bit displaced from its
intended location.

For more details, please see the associated ticket.

Tested by inspecting the written bitmasks with and without this change.
2018-04-11 11:51:57 +10:00
Chris Johns
343f208409 Updated README. 2018-04-11 11:49:03 +10:00
Sebastian Huber
2eaea4223f sptests: Fix AM_CONDITIONAL
Update #3382.
2018-04-10 12:38:37 +02:00
Sebastian Huber
1ce4a9e073 bsps: Fix typo in MPCI support
This patch is a part of the BSP source reorganization.

Update #3285.
2018-04-10 07:00:15 +02:00
Chris Johns
cb7b4dc459 bsp/lpc24xx: Exclude iconv POSIX tests.
These are now built to executables and are too large for this BSP.

This change is part of the testsuite Makefile.am reorganization.

Update #3382
2018-04-10 08:25:35 +10:00
Chris Johns
ee3d7dcb7f testsuites: Remove the test check from the subdir support.
Leave the parallel support so each test group builds in parallel.

Update #3382
2018-04-10 08:24:54 +10:00
Chris Johns
cc14545ed9 testsuite/tmtests: Merged nested Makefile.am files into one Makefile.am
This change is part of the testsuite Makefile.am reorganization.

Update #3382
2018-04-10 08:24:54 +10:00
Chris Johns
bc0675393d testsuite/sptests: Merged nested Makefile.am files into one Makefile.am
This change is part of the testsuite Makefile.am reorganization.

Update #3382
2018-04-10 08:24:54 +10:00
Chris Johns
8074fa0b83 testsuite/smptests: Merged nested Makefile.am files into one Makefile.am
This change is part of the testsuite Makefile.am reorganization.

Update #3382
2018-04-10 08:24:54 +10:00
Chris Johns
d027e6bb8e testsuite/samples: Merged nested Makefile.am files into one Makefile.am
This change is part of the testsuite Makefile.am reorganization.

Update #3382
2018-04-10 08:24:54 +10:00
Chris Johns
590a5809bd testsuite/irhealstone: Merged nested Makefile.am files into one Makefile.am
This change is part of the testsuite Makefile.am reorganization.

Update #3382
2018-04-10 08:24:54 +10:00
Chris Johns
dfc57eb34f testsuite/psxtmtests: Merged nested Makefile.am files into one Makefile.am
This change is part of the testsuite Makefile.am reorganization.

Update #3382
2018-04-10 08:24:54 +10:00
Chris Johns
2a99a6a066 testsuite/psxtests: Merged nested Makefile.am files into one Makefile.am
This change is part of the testsuite Makefile.am reorganization.

Update #3382
2018-04-10 08:24:54 +10:00
Chris Johns
3206879f06 testsuite/mptests: Merged nested Makefile.am files into one Makefile.am
This change is part of the testsuite Makefile.am reorganization.

Update #3382
2018-04-10 08:24:54 +10:00
Chris Johns
8967e5fa78 testsuite/fstests: Merged nested Makefile.am files into one Makefile.am
This change is part of the testsuite Makefile.am reorganization.

Update #3382
2018-04-10 08:24:54 +10:00
Chris Johns
5c65b9881b testsuite/libtests: Merged nested Makefile.am files into one Makefile.am
This change is part of the testsuite Makefile.am reorganization.

Update #3382
2018-04-10 08:24:54 +10:00
Chris Johns
32f2629bb7 testsuite/benchmarks: Merged nested Makefile.am files into one Makefile.am
This change is part of the testsuite Makefile.am reorganization.

Update #3382
2018-04-10 08:24:54 +10:00
Chris Johns
18f77699a8 testsuite: Autoconf test check support.
The autoconf function checks the state of a test for the BSP and
controls the building of the test.

This change is part of the testsuite Makefile.am reorganisation.

Update #3382
2018-04-10 08:24:54 +10:00
Chris Johns
e1664027fe Require the user to provide a BSP list when build SMP or MP.
Close 3383.
2018-04-10 08:22:07 +10:00
Chris Johns
9f6f0261c1 Generate an error if no valid gcc is found when configure runs.
Close #3385.
2018-04-10 08:22:07 +10:00
Sebastian Huber
b6069985b5 bsp/genmcf548x: Fix IRQ support
This patch is a part of the BSP source reorganization.

Update #3285.
2018-04-09 11:41:11 +02:00
Sebastian Huber
01d34a3705 bsp/csb337: Fix umon support
This patch is a part of the BSP source reorganization.

Update #3285.
2018-04-09 11:37:55 +02:00
Sebastian Huber
9edb72e4be build: Remove DISTCLEANFILES
A "make distclean" is not supported. So, it makes no sense to have pure
"make distclean" related stuff in the Makefile.am.
2018-04-09 07:09:47 +02:00
Sebastian Huber
9b7c456732 bsps: Move generic IRQ support to bsps
This patch is a part of the BSP source reorganization.

Update #3285.
2018-04-09 07:09:47 +02:00
Sebastian Huber
d5842691e1 bsps: Remove librtemsbsp.a wrapup
This patch is a part of the BSP source reorganization.

Update #3285.
2018-04-09 07:09:47 +02:00
Sebastian Huber
4b28d3c797 bsps: Move shmdr to bsps
This patch is a part of the BSP source reorganization.

Update #3285.
2018-04-09 07:09:47 +02:00
Sebastian Huber
814eccb4cf bsps: Move VME support to bsps
The VME support is only used by powerpc BSPs.

This patch is a part of the BSP source reorganization.

Update #3285.
2018-04-09 07:09:46 +02:00
Sebastian Huber
671c31fc5d bsp: Move umon support to bsps
The umon support is only used by the csb337 BSP.

This patch is a part of the BSP source reorganization.

Update #3285.
2018-04-09 07:09:46 +02:00
Chris Johns
1ce7bcb950 Allow rtems-bsps to be run from any path. 2018-04-09 14:56:43 +10:00
Sebastian Huber
d03ec77d09 bsps/powerpc: Rename to shared-sources.am
This patch is a part of the BSP source reorganization.

Update #3285.
2018-04-05 07:26:24 +02:00
Sebastian Huber
6799a78983 bsps/powerpc: Rename to exceptions-sources.am
This patch is a part of the BSP source reorganization.

Update #3285.
2018-04-05 07:26:24 +02:00
Sebastian Huber
0f0f249c79 bsps/m68k: Rename fpsp.am to fpsp-sources.am
This patch is a part of the BSP source reorganization.

Update #3285.
2018-04-05 07:26:24 +02:00
Sebastian Huber
82bc97663b bsps/bfin: Rename shared.am to shared-sources.am
This patch is a part of the BSP source reorganization.

Update #3285.
2018-04-05 07:26:24 +02:00
Sebastian Huber
27de4e1fb8 bsps: Move libchip to bsps
This patch is a part of the BSP source reorganization.

Update #3285.
2018-04-04 10:13:28 +02:00
Sebastian Huber
8621ed3806 bsps: Move config macros to RTEMS_BSP_CONFIGURE
Provide HAS_NETWORKING and HAS_SMP Automake conditionals for all BSPs.

This patch is a part of the BSP source reorganization.

Update #3285.
2018-04-04 10:13:27 +02:00
Sebastian Huber
4f0dca3ad2 bsps: Move version.c and use bspopts.h
This patch is a part of the BSP source reorganization.

Update #3285.
Update #3375.
2018-04-04 10:13:26 +02:00
Sebastian Huber
ce0ea6ff4f bsps: Add shared-sources.am
This patch is a part of the BSP source reorganization.

Update #3285.
2018-04-04 10:12:29 +02:00
Sebastian Huber
66b99a13ac bsps: Add RTEMS_BSP to bspopts.h
This patch is a part of the BSP source reorganization.

Update #3285.
2018-04-04 10:10:09 +02:00
Sebastian Huber
2d0bc839ed build: Remove EXTRA_DIST
A "make dist" is not supported. So, it makes no sense to have pure "make
dist" related stuff in the Makefile.am.
2018-04-04 10:09:04 +02:00
Joel Sherrill
0b8a6d77a8 Eliminate PowerPC libcpu/page.h
Started to eliminate warnings and then realized that only one one-line
macro in the file was used by a few files. The rest of the file was
was not needed. Eliminate the file.

Closes #3354.
2018-03-28 11:17:45 -05:00
Sebastian Huber
4f0dcb69a8 bsps/riscv: Fix warnings 2018-03-27 13:08:13 +02:00
Sebastian Huber
549b1d6bbe Remove unused POSIX_NOT_IMPLEMENTED() declaration 2018-03-27 08:33:06 +02:00
Sebastian Huber
699fee43fd bsps: Remove libcpu
This patch is a part of the BSP source reorganization.

Update #3285.
2018-03-26 15:12:51 +02:00
Sebastian Huber
5d395124ad bsps/m68k: Remove libcpu/m68k
This patch is a part of the BSP source reorganization.

Update #3285.
2018-03-26 15:12:51 +02:00
Sebastian Huber
b54558ac9d bsps/mcf5225x: Move libcpu content to bsps
This patch is a part of the BSP source reorganization.

Update #3285.
2018-03-26 15:12:50 +02:00
Sebastian Huber
4d22b554c2 bsps/m68k: Fix warning 2018-03-26 15:12:50 +02:00