summaryrefslogtreecommitdiffstats
path: root/cpukit (follow)
Commit message (Collapse)AuthorAgeFilesLines
* config: Fix typoSebastian Huber2020-04-141-1/+1
| | | | Update #3875.
* score: Check time of day in _TOD_Set()Sebastian Huber2020-04-142-4/+20
| | | | Close #3949.
* score: Return status in _TOD_Set()Sebastian Huber2020-04-145-44/+41
| | | | Update #3949.
* score: Delete RTEMS_DECLARE_GLOBAL_SYMBOL()Sebastian Huber2020-04-081-20/+0
| | | | | | Delete unused RTEMS_DECLARE_GLOBAL_SYMBOL(). Update #3799.
* config: Fix _ISR_Stack_area_endSebastian Huber2020-04-081-6/+9
| | | | | | | | | | | | | | In the previous implementation, the _ISR_Stack_area_begin and _ISR_Stack_area_end symbols were in different sections. If they do not have the same alignment, then the following linker directive could separate them: *(SORT_BY_ALIGNMENT (SORT_BY_NAME (.rtemsstack*))) Do not use different sections and instead define _ISR_Stack_area_end directly. Update #3799.
* score: Add and use RTEMS_SYMBOL_NAME()Sebastian Huber2020-04-081-10/+27
| | | | Update #3799.
* Revert "score: Fix _ISR_Stack_area_end"Sebastian Huber2020-04-053-37/+5
| | | | | This reverts commit 8e80876bdd54e36fb668eee655eec1dd588daf13 which broke several architectures.
* cpukit/rfs: fix typo in header guardGedare Bloom2020-04-031-1/+1
|
* score: Fix _ISR_Stack_area_endSebastian Huber2020-04-033-5/+37
| | | | | | | | | | The _ISR_Stack_area_begin and _ISR_Stack_area_end symbols are in different sections. They must have the same alignment, otherwise the following linker directive could separate them: *(SORT_BY_ALIGNMENT (SORT_BY_NAME (.rtemsstack*))) Update #3799.
* arm: ARMv7-M statically initialized vector tableSebastian Huber2020-04-032-16/+30
| | | | | | | Statically initialize the ARMv7-M vector table to allow a placement in ROM with read-only MPU settings. Change licence to BSD-2-Clause in some files.
* config: Remove filesystem entry config optionsSebastian Huber2020-04-031-56/+14
| | | | | | | | | | | | | | | | | | | | Remove the following undocumented configuration options: * CONFIGURE_FILESYSTEM_ENTRY_DOSFS * CONFIGURE_FILESYSTEM_ENTRY_FTPFS * CONFIGURE_FILESYSTEM_ENTRY_IMFS * CONFIGURE_FILESYSTEM_ENTRY_JFFS2 * CONFIGURE_FILESYSTEM_ENTRY_NFS * CONFIGURE_FILESYSTEM_ENTRY_RFS * CONFIGURE_FILESYSTEM_ENTRY_TFTPFS Update #3836.
* libio: Remove RTEMS_FILESYSTEM_TYPE_MINIIMFSSebastian Huber2020-04-021-3/+0
| | | | | This type is unused. Do not mention non-existing CONFIGURE_FILESYSTEM_MINIIMFS.
* rtems: Fix Doxygen commentSebastian Huber2020-04-021-2/+0
|
* config: Remove CONFIGURE_FILESYSTEM_DEVFSSebastian Huber2020-03-312-12/+0
| | | | | | | | This filesystem no longer exists. Remove unused RTEMS_FILESYSTEM_TYPE_DEVFS. Update #3894.
* ftpd: Remove superfluous definesSebastian Huber2020-03-311-9/+0
| | | | | | These defines are not used and easily conflict with application code. They are also defined by the standard header file <arpa/ftp.h> if someone needs them.
* ftpd: Fix return typesSebastian Huber2020-03-313-4/+6
|
* config: Remove BSP_DEFAULT_UNIFIED_WORK_AREASSebastian Huber2020-03-311-1/+0
| | | | | Do not undefine this unused BSP configuration option. This is a follow up of commit 92b33b8d09377feb14eb5a831ce242047c58d02b.
* score: Document _TLS_AlignmentSebastian Huber2020-03-231-0/+10
|
* score: Fix size of TLS_Thread_control_blockSebastian Huber2020-03-231-1/+3
| | | | | On most architectures, the size of the thread-local storage TCB must be 8 bytes. Fix the definition for 64-bit targets.
* conf: Improve evaluation of event recording optsSebastian Huber2020-03-231-22/+46
| | | | | | | Check for configuration errors earlier. Allow fatal dumps without the other extensions. Add some warnings. Update #3904.
* record: Add rtems_record_dump()Sebastian Huber2020-03-1810-17/+637
| | | | | | | | | Add rtems_record_dump_base64() and rtems_record_dump_base64_zlib(). Add CONFIGURE_RECORD_FATAL_DUMP_BASE64 and CONFIGURE_RECORD_FATAL_DUMP_BASE64_ZLIB configuration options. Update #3904.
* rtems: Add rtems_put_char()Sebastian Huber2020-03-164-6/+50
| | | | Update #3904.
* score: Add _IO_Base64()Sebastian Huber2020-03-163-1/+109
| | | | Update #3904.
* libio: Robust file descriptor reference countingSebastian Huber2020-03-139-43/+34
| | | | | | | | | | | | There was a race conditon in the reference counting of file descriptors during a close() operation. After the call to the close handler, the rtems_libio_free() function cleared the flags to zero. However, at this point in time there may still exist some holders of the file descriptor. With RTEMS_DEBUG enabled this could lead to failed assertions in rtems_libio_iop_drop(). Change the code to use only atomic read-modify-write operations on the rtems_libio_iop::flags.
* imfs: Replace devfs with an IMFS specializationSebastian Huber2020-03-0918-816/+213
| | | | | | | | | | | | | | | | Add a simplified path evaluation function IMFS_eval_path_devfs() for a device only IMFS configuration. The code size can be further reduced by the application if it disables the support for legacy IO drivers via: #define CONFIGURE_IMFS_DISABLE_MKNOD #define CONFIGURE_IMFS_DISABLE_MKNOD_DEVICE Obsolete CONFIGURE_MAXIMUM_DEVICES. Remove BSP_MAXIMUM_DEVICES. Update #3894. Update #3898.
* imfs: Simplify code generationSebastian Huber2020-03-091-11/+17
| | | | Update #3894.
* imfs: Remove unused handlersSebastian Huber2020-03-091-6/+1
| | | | Update #3894.
* imfs: Constify imfs_memfile_bytes_per_blockSebastian Huber2020-03-094-40/+2
| | | | | | | | The CONFIGURE_IMFS_MEMFILE_BYTES_PER_BLOCK value is validated by <rtems/confdefs/libio.h>. Changing this value during runtime could lead to memory corruption. Update #3894.
* imfs: Use _IMFS_get_time()Sebastian Huber2020-03-091-6/+5
| | | | Update #3894.
* libio: Constify some functionsSebastian Huber2020-03-091-4/+4
|
* console: Use IMFS_add_node() for simple task consSebastian Huber2020-03-041-20/+50
| | | | | | | Change license to BSD-2-Clause according to file history. Update #3053. Update #3894.
* console: Use IMFS_add_node() for simple consoleSebastian Huber2020-03-041-17/+38
| | | | | | | Change license to BSD-2-Clause according to file history. Update #3053. Update #3894.
* imfs: Add IMFS_add_node()Sebastian Huber2020-03-045-16/+312
| | | | Update #3894.
* imfs: Simplify IMFS_create_node()Sebastian Huber2020-03-041-3/+4
| | | | Update #3894.
* imfs: Remove IMFS_NODE_FLAG_NAME_ALLOCATEDSebastian Huber2020-03-043-17/+39
| | | | | | | | Remove IMFS_NODE_FLAG_NAME_ALLOCATED and instead replace the node control in rename operations. This avoids a special case in the general node destruction which pulled in free(). Update #3894.
* rtems: rtems_scheduler_get_processor_maximum()Sebastian Huber2020-03-044-54/+3
| | | | | | | | | | | | In uniprocessor configurations, use compile-time constants for rtems_scheduler_get_processor_maximum() and rtems_scheduler_get_processor(). This helps compilers and static analyzers to deduce that some loop bodies are only executed once and some conditional statements have a fixed outcome (may improve code generation and reduce false positives). In SMP configurations, directly provide the internal implementation for performance reasons.
* config: Remove <rtems/btimer.h> includeSebastian Huber2020-03-041-4/+0
| | | | | | | The use of CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER does not define anything, so remove the <rtems/btimer.h> include. Update #3875.
* rtems: Add rtems_scheduler_map_priority_from_posix()Sebastian Huber2020-03-033-0/+89
| | | | Update #3881.
* rtems: Add rtems_scheduler_map_priority_to_posix()Sebastian Huber2020-03-033-0/+89
| | | | Update #3881.
* dtc: Update VERSIONSebastian Huber2020-03-021-3/+3
|
* libfdt: Allow exclusion of fdt_check_full()Simon Glass2020-03-021-63/+0
| | | | | | | | | | This function is used to perform a full check of the device tree. Allow it to be excluded if all assumptions are enabled. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Message-Id: <20200220214557.176528-9-sjg@chromium.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
* libfdt: Add support for disabling ordering check/fixupSimon Glass2020-03-021-1/+2
| | | | | | | | | | Add a way to remove this check and the reordering code, which is unnecessary if the dtb is known to be correctly ordered. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Message-Id: <20200220214557.176528-8-sjg@chromium.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
* libfdt: Add support for disabling version checksSimon Glass2020-03-023-24/+32
| | | | | | | | | Allow enabling FDT_ASSUME_LATEST to disable version checks. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Message-Id: <20200220214557.176528-7-sjg@chromium.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
* libfdt: Add support for disabling rollback handlingSimon Glass2020-03-021-3/+15
| | | | | | | | | | Allow enabling FDT_ASSUME_NO_ROLLBACK to disable rolling back after a failed operation. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Message-Id: <20200220214557.176528-6-sjg@chromium.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
* libfdt: Add support for disabling sanity checksSimon Glass2020-03-022-24/+48
| | | | | | | | | | Allow enabling ASSUME_VALID_INPUT to disable sanity checks on the device tree and the parameters to libfdt. This assumption covers that cases where the problem could be with either. Signed-off-by: Simon Glass <sjg@chromium.org> Message-Id: <20200220214557.176528-5-sjg@chromium.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
* libfdt: Add support for disabling dtb checksSimon Glass2020-03-024-29/+45
| | | | | | | | | | | Support ASSUME_VALID_DTB to disable some sanity checks If we assume that the DTB itself is valid then we can skip some checks and save code space. Add various conditions to handle this. Signed-off-by: Simon Glass <sjg@chromium.org> Message-Id: <20200220214557.176528-4-sjg@chromium.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
* Add a way to control the level of checks in the codeSimon Glass2020-03-021-0/+104
| | | | | | | | | | | | | Add a new ASSUME_MASK option, which allows for some control over the checks used in libfdt. With all assumptions enabled, libfdt assumes that the input data and parameters are all correct and that internal errors cannot happen. By default no assumptions are made and all checks are enabled. Signed-off-by: Simon Glass <sjg@chromium.org> Message-Id: <20200220214557.176528-3-sjg@chromium.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
* libfdt: De-inline fdt_header_size()Simon Glass2020-03-022-4/+10
| | | | | | | | | | | There does not seem to be a strong reason to inline this function. Also we are about to add some extra code to it which will increase its size. Move it into fdt.c and use a simple declaration in libfdt.h Signed-off-by: Simon Glass <sjg@chromium.org> Message-Id: <20200220214557.176528-2-sjg@chromium.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
* libfdt: Correct prototype for fdt_ro_probe_()David Gibson2020-03-021-2/+2
| | | | | | | | | | | This function returns an int32_t, however the prototype in libfdt_internal.h shows it returning an int. We haven't caught this before because they're the same type on nearly all platforms this gets built on. Apparently it's not the case on FreeRTOS, so someone hit this mismatch building for that platform. Reported-by: dharani kumar <dharanikumarsrvn@gmail.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
* libfdt.h: add explicit cast from void* to uint8_t* in fdt(32|64)_stLuc Michel2020-03-021-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Including libfdt.h in a C++ project fails during compilation with recent version of GCC or Clang. This simple example: extern "C" { #include <libfdt.h> } int main(void) { return 0; } leads to the following errors with GCC 9.1.0: /usr/include/libfdt.h: In function ‘void fdt32_st(void*, uint32_t)’: /usr/include/libfdt.h:139:16: error: invalid conversion from ‘void*’ to ‘uint8_t*’ {aka ‘unsigned char*’} [-fpermissive] 139 | uint8_t *bp = property; | ^~~~~~~~ | | | void* /usr/include/libfdt.h: In function ‘void fdt64_st(void*, uint64_t)’: /usr/include/libfdt.h:163:16: error: invalid conversion from ‘void*’ to ‘uint8_t*’ {aka ‘unsigned char*’} [-fpermissive] 163 | uint8_t *bp = property; | ^~~~~~~~ | | | void* This commit adds an explicit cast to uint8_t* to fix this issue. Signed-off-by: Luc Michel <luc.michel@greensocs.com> Message-Id: <20190910104824.1321594-1-luc.michel@greensocs.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>