Commit Graph

34138 Commits

Author SHA1 Message Date
Sebastian Huber
ecc6b2f56c rtems: Generate <rtems/rtems/part.h>
Change license to BSD-2-Clause according to file histories and
documentation re-licensing agreement.

Update #3899.
Update #3993.
2020-11-12 08:54:59 +01:00
Sebastian Huber
007ee134a4 rtems: Generate <rtems/rtems/event.h>
Change license to BSD-2-Clause according to file histories and
documentation re-licensing agreement.

Update #3899.
Update #3993.
2020-11-12 08:54:59 +01:00
Sebastian Huber
f75e240f8c rtems: Generate <rtems/rtems/attr.h>
Change license to BSD-2-Clause according to file histories and
documentation re-licensing agreement.

Update #3899.
Update #3993.
2020-11-12 08:54:59 +01:00
Sebastian Huber
9b4458e78e rtems: Generate <rtems/rtems/types.h>
Change license to BSD-2-Clause according to file histories and
documentation re-licensing agreement.

Update #3899.
Update #3993.
2020-11-12 08:54:59 +01:00
Sebastian Huber
8de874b766 rtems: Generate <rtems/rtems/options.h>
Change license to BSD-2-Clause according to file histories and
documentation re-licensing agreement.

Update #3899.
Update #3993.
2020-11-12 08:54:59 +01:00
Sebastian Huber
e05b100b3c rtems: Generate <rtems/rtems/modes.h>
Change license to BSD-2-Clause according to file histories and
documentation re-licensing agreement.

Update #3899.
Update #3993.
2020-11-12 08:54:59 +01:00
Sebastian Huber
c0327d8617 rtems: Generate <rtems/rtems/status.h>
Change license to BSD-2-Clause according to file histories and
documentation re-licensing agreement.

Update #3899.
Update #3993.
2020-11-12 08:54:59 +01:00
Sebastian Huber
da44df31b1 rtems: Generate <rtems/rtems/config.h>
Change license to BSD-2-Clause according to file histories and
documentation re-licensing agreement.

Update #3899.
Update #3993.
2020-11-12 08:54:59 +01:00
Sebastian Huber
1af946088d rtems: Generate <rtems/config.h>
Change license to BSD-2-Clause according to file histories and
documentation re-licensing agreement.

Update #3899.
Update #3993.
2020-11-12 08:54:59 +01:00
Sebastian Huber
96559b3a4a rtems: Include missing header file 2020-11-12 08:54:59 +01:00
Sebastian Huber
ced1302208 Improve automatically generated warning 2020-11-12 08:54:59 +01:00
Christian Mauderer
cab11b5b80 bsp/atsam: Fix XDMAD status
In "bsp/atsam: Simplify XDMAD_Handler()" (5f813694f6) the interrupt
callback has been made unconditional. That allowed to avoid some special
deadlock situations in error cases. But it removed part of the XDMAD
status handling.

This patch adds the ability to update the XDMAD status from the
callback if that is necessary for the driver.

Fixes #4173
2020-11-12 08:30:20 +01:00
Sebastian Huber
d5d9a89d03 build: Fix cache file placement
The "bsp_list" and "bsp_defaults" commands get a waflib.Context object
which has no build node.  Use a hard coded build path for these
commands.
2020-11-12 07:51:30 +01:00
Sebastian Huber
f435bdd545 dl06: Do not include loaded objs in base image 2020-11-11 08:30:41 +01:00
Sebastian Huber
dfe6b84d03 smpmulticast01: Fix NULL pointer access 2020-11-10 13:05:27 +01:00
Jiri Gaisler
4c2d5f271b Add correct link address for griscv waf build 2020-11-09 09:35:11 +01:00
Jiri Gaisler
b4c29b54e7 Add networking support for griscv bsp
* Only GRETH device supported for now
	* Fix endian problem in GRETH driver
	* Remove SPARC assembly from greth.c
	* Builds with both autoconf and waf
2020-11-09 09:35:11 +01:00
Sebastian Huber
7f0379c8dd libtrace: Move _Record_Stream_header_initialize()
This fixes the build if no function sections are used.
2020-11-09 08:10:57 +01:00
Sebastian Huber
350bba7a04 sparc: Add SPARC_INTERRUPT_SOURCE_TO_TRAP()
Update #4171.
2020-11-06 14:05:53 +01:00
Sebastian Huber
828114778d sparc: Add SPARC_INTERRUPT_TRAP_TO_SOURCE()
Update #4171.
2020-11-06 14:05:53 +01:00
Sebastian Huber
b7271f8c1e sparc: Add SPARC_IS_INTERRUPT_TRAP()
Update #4171.
2020-11-06 14:05:53 +01:00
Sebastian Huber
2c467ec767 sparc: Move SPARC-specific macros to sparc.h
Clarify Doxygen comments.  Fix formatting.

Update #4171.
2020-11-06 14:05:53 +01:00
Sebastian Huber
4cd885c305 rtems-bsps: Use build specification items
Close #4123.
2020-11-05 21:14:54 +01:00
Sebastian Huber
6cf0c559dc build: Place cache file in output directory
This improves support for the --out option.  Previously, the cache file
was placed in the source directory under "build/...".  Now, it is placed
in the output directory, which is "build" by default.  So, if you don't
use the --out option nothing changes.  However, if you use the --out
option, then the cache file is placed under the specified directory.
2020-11-05 18:53:49 +01:00
Jan Sommer
da9cc0b50c confdefs: Add extern C guards to libpci.h 2020-10-30 13:21:12 +11:00
Sebastian Huber
68239434c2 score: Fix unused parameter 'lock' warning 2020-10-28 14:53:12 +01:00
Sebastian Huber
eebad5ffcd build: Improve cache handling
Check the directory modification time to notice file removals.
2020-10-28 07:33:38 +01:00
Sebastian Huber
b052e3aefa build: Report caching errors
The ctx.fatal() method uses an exception to stop the build.  Do not
catch it.
2020-10-28 07:33:38 +01:00
Sebastian Huber
99494370d6 bsp/stm32h7: New BSP
Update #3910.
2020-10-27 06:11:45 +01:00
Sebastian Huber
c44e404888 bsp/stm32h7: Fix warnings
Update #3910.
2020-10-27 06:11:45 +01:00
Sebastian Huber
e4ba06f8b4 bsp/stm32h7: Disable unused functions
Update #3910.
2020-10-27 06:11:45 +01:00
Sebastian Huber
abb78587b6 bsp/stm32h7: Enable LL drivers
Update #3910.
2020-10-27 06:11:45 +01:00
Sebastian Huber
2f157e2007 bsp/stm32h7: Move <math.h> include
This is necessary for libbsd compatibility.

Update #3910.
2020-10-27 06:11:45 +01:00
Sebastian Huber
2cfcd005e9 bsp/stm32h7: Constify some functions
Update #3910.
2020-10-27 06:11:45 +01:00
Sebastian Huber
2131228f79 bsp/stm32h7: Import from STM32CubeMX-5.6.0
Update #3910.
2020-10-27 06:11:44 +01:00
Sebastian Huber
db94626bc3 bsp/leon3: Updat due to API changes 2020-10-26 15:10:05 +01:00
Sebastian Huber
273613f1a8 bsps/arm: Sort fast text/data sections 2020-10-21 07:58:38 +02:00
Sebastian Huber
3fccdc956c bsps/arm: Add support for MPU region alignment
Update #3910.
2020-10-21 07:58:34 +02:00
Frank Kühndel
daeb0a1881 rtems-fdt / shell - Fix string truncation warning
The compiler warning was:

../../../cpukit/libmisc/rtems-fdt/rtems-fdt.c:267:5: warning:
'strncpy' specified bound depends on the length of the source argument
  267 |     strncpy(path, name, namelen);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

It turns out that the `strncpy()` nor the buffer `path` is needed when
one uses `strncmp()` instead of `strcmp()`. This needs some change to
the algorithm but has the advantage that `name` is never truncated
to the size of the buffer `path`.
2020-10-20 07:01:29 +02:00
Sebastian Huber
bb4e534014 bsps: Fix rtems_interrupt_server_delete()
The ISR lock must be destroyed to prevent memory corruption if RTEMS_PROFILING
and RTEMS_SMP is enabled.

Close #4158.
2020-10-19 17:44:49 +02:00
Sebastian Huber
2b9fb3141c posix: Fix pthread_spin_unlock()
Prevent a call to _SMP_lock_Stats_register_or_max_section_time().  This fixes a
thread stack corruption in case RTEMS_PROFILING and RTEMS_SMP is enabled.

Close #4157.
2020-10-19 17:33:22 +02:00
Chris Johns
f514092f95 libfs/rfs: Check search bit map end on last bit
- Do not write past the last location of the search bit map
  whe nit is being created.

Closes #4148
2020-10-17 10:43:03 +11:00
Sebastian Huber
f9c8e14dcb grlib: Add ambapp_common_info to derived types
This avoids a cast in DEV_TO_COMMON().
2020-10-16 07:07:19 +02:00
Sebastian Huber
c15c520b96 grlib: Remove unused conversion macros 2020-10-16 07:07:19 +02:00
Sebastian Huber
3154203bba grlib: Remove superfluous forward decls 2020-10-16 07:07:19 +02:00
Sebastian Huber
cf1682130c bsps/arm: Add workaround for Errata 794072
Add a workaround for Cortex-A9 Errata 845369: A short loop including a DMB
instruction might cause a denial of service on another which executes a CP15
broadcast operation.

Close #4115.
2020-10-16 06:36:53 +02:00
Sebastian Huber
e7b878e42f bsps/arm: Workaround for Errata 845369
Add a workaround for Cortex-A9 Errata 845369: Under Very Rare Timing
Circumstances Transition into Streaming Mode Might Create Data Corruption.

Update #4115.
2020-10-16 06:36:06 +02:00
Sebastian Huber
e2250eeb94 Revert "rtems-fdt / shell - Fix string truncation warning"
This reverts commit 355bc37ad3.
2020-10-16 06:22:56 +02:00
Frank Kühndel
355bc37ad3 rtems-fdt / shell - Fix string truncation warning
The compiler warning was:

../../../cpukit/libmisc/rtems-fdt/rtems-fdt.c:267:5: warning:
'strncpy' specified bound depends on the length of the source argument
  267 |     strncpy(path, name, namelen);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

It turns out that the `strncpy()` nor the buffer `path` is needed when
one uses `strncmp()` instead of `strcmp()`. This needs some change to
the algorithm but has the advantage that `name` is never truncated
to the size of the buffer `path`.

Note:

rtems-fdt.c, rtems-fdt-shell.c and cpukit/include/rtems/rtems-fdt.h
seem to be dead code. They implement a shell command `fdt` but that
command is not part of the shell nor of any macro in
cpukit/include/rtems/shellconfig.h.
2020-10-15 19:15:50 +02:00
Frank Kühndel
1dbd1079a5 shell/main_edit.c: Fix string truncation warning
Using strlcpy() instead of strncpy():

1) Prevents the compiler warnings
2) Ensures, the string is NUL terminated.
3) Avoids that strncpy() unnecessary fills the unused part of the buffer with
   0 bytes.

(Note that realpath() also returns NULL if the file does not exist - that
happens always if someone creates a new file with the editor of the shell.)
2020-10-15 19:14:52 +02:00