Commit Graph

37026 Commits

Author SHA1 Message Date
Amar Takhar
7a03a30c15 First attempt at a default ticket template.
All templates in this directory will be set in the RTEMS namespace.
2024-04-13 21:09:37 -04:00
Sebastian Huber
53d092471f dev/serial: Add Zynq UART kernel I/O support
Replace the BSP_CONSOLE_MINOR BSP option for the Xilinx Zynq BSPs with the new
BSP option ZYNQ_UART_KERNEL_IO_BASE_ADDR.  Move the kernel I/O support to a
shared file.
2024-04-04 12:53:53 +02:00
Sebastian Huber
8ad3f92b9a dev/serial: Add ZYNQ_UART_[01]_BASE_ADDR
This helps to provide a shared implementation of the kernel I/O support.
2024-04-04 12:53:51 +02:00
Sebastian Huber
4c2da2c343 dev/serial: Simplify some Zynq UART functions
Make the initialization and polled functions independent of the Termios
context.  This helps to implement the kernel I/O support without a dependency
on the Termios framework.
2024-03-27 20:22:53 +01:00
Sebastian Huber
5b0e355ed7 bsps: Move declarations to <bsp/irq-generic.h>
Move declarations of bsp_interrupt_get_affinity() and
bsp_interrupt_set_affinity() to <bsp/irq-generic.h>.  Canonicalize the
<bsp/irq.h> includes.

Implement bsp_interrupt_get_affinity() and bsp_interrupt_set_affinity() only if
needed (usually RTEMS_SMP).

Provide stub implementations for i386 to fix build errors.
2024-03-27 20:20:38 +01:00
Sebastian Huber
1ef5fa07aa rtems: Avoid -Wundef warnings in API header 2024-03-23 10:56:25 +01:00
Sebastian Huber
1df822a922 Mark parameters as intentionally unused
The parameters are unused due to API constraints.  The functions are
used through function pointers.  Alternative implementations may use the
parameters.

Update #4862.
2024-03-22 08:12:22 +01:00
Sebastian Huber
1eed6f8bfc bsps: Avoid unused argument in clock interrupt
Pass the parameter of the clock interrupt handler to
Clock_driver_support_at_tick() and Clock_driver_timecounter_tick().  This makes
it possible to use the interrupt handler argument in clock drivers.

Use the interrupt handler provided by Clock_driver_support_install_isr() to
avoid local delarations of Clock_isr().

Update #4862.
2024-03-20 16:34:09 +01:00
Sebastian Huber
d62f299b34 Do not define CONFIGURE_TICKS_PER_TIMESLICE to 0
Unconditionally make a CONFIGURE_TICKS_PER_TIMESLICE value less than or equal
to zero an error.

Update #4986.
2024-03-20 10:52:16 +01:00
Sebastian Huber
9e0bcd4fc7 score: Include missing header file
This fixes:

heap.c:268:3: warning: implicit declaration of function 'memset'
2024-03-20 10:52:16 +01:00
Sebastian Huber
e1cb8830b7 testsuites: Exclude JFFS2 NAND tests 2024-03-20 08:27:40 +01:00
Sebastian Huber
2f5a747dcc dev/irq: Optional arm_gic_irq_processor_count()
Provide arm_gic_irq_processor_count() only in SMP configurations.
2024-03-20 07:40:41 +01:00
Sebastian Huber
431e335e7e bsps: Add xilinx_zynqmp_lp64_a53 BSP variant
Add a BSP variant without a board-specific name.
2024-03-20 07:40:41 +01:00
Sebastian Huber
1e406690a5 bsps: Add xilinx_zynq_rpu BSP variant
Add a BSP variant without a board-specific name.
2024-03-20 07:40:41 +01:00
Sebastian Huber
8f4b9d6611 xilinx-zynqmp-rpu: Remove URLs from copyrights 2024-03-20 07:40:41 +01:00
Sebastian Huber
5b5ff07016 bsps: Use bsps/arm/xilinx-zynqmp-rpu 2024-03-20 07:40:41 +01:00
Sebastian Huber
99398625f4 bsps: Use bsps/aarch64/xilinx-zynqmp 2024-03-20 07:40:41 +01:00
Sebastian Huber
bc910e1aac arm: Move _CPU_ISR_install_vector()
The use of this function is optional. Newer BSPs do not use it.
2024-03-20 07:40:41 +01:00
Stanislav Pankevich
ef9a74fc1a arm/xilinx-zynqmp-rpu: Fix clock driver
We observed a strange behavior of the 1Hz timer when running cFS on Zynq
RPU. After some investigation, we reduced the error to the truncation
issue. This patch fixes the issue.
2024-03-19 13:25:16 +01:00
Kinsey Moore
9c84037e93 cpukit: Gate ticks per timeslice config
Gate CONFIGURE_TICKS_PER_TIMESLICE appropriately behind
CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER.
2024-03-18 15:18:38 -05:00
Kinsey Moore
1ecb4e3047 cpukit/jffs2: Properly commit JFFS2 data
When unmounting a JFFS2 filesystem, any outstanding write buffers must
be flushed to disk. In some circumstances, these write buffers are
instantiated by a garbage collection pass and as such no inode number is
associated with it. Due to the way that JFFS2 processes these garbage
collection passes, a write buffer without any associated inodes will not
be flushed unless it is forced with jffs2_flush_wbuf_pad().
2024-03-14 17:13:23 -05:00
Zack leung
5ee87eee8a Ensure ticks per timeslice is greater than zero 2024-03-14 12:58:59 -05:00
Kinsey Moore
fd790b3431 bsps/shared/xqspipsu: Read correct status bits
When resetting the QSPI FIFOs, the driver was reading write-only bits of
a register for status information when it was actually in a different
register. This corrects the driver so that it reads the correct status
bits.
2024-03-11 12:09:59 -05:00
Kinsey Moore
33379dcfc4 bsps/shared/xnandpsu: Add opportunistic page cache
Add an opportunistic page cache to the xnandpsu driver since it does not
implement partial page reads and common filesystem access patterns
perform multiple reads from the same page. This has been seen to provide
a 10x speedup to read speeds and a 2x speedup on first initialization
when used with JFFS2.
2024-03-11 12:09:59 -05:00
Sebastian Huber
a7730cf1b1 aarch64/zynqmp: Fix build item BSP family 2024-03-11 16:43:40 +01:00
Sebastian Huber
85b55a7624 bsps/clock: Fix fast idle for SMP 2024-03-11 14:40:06 +01:00
Matt Joyce
461f118ad0 validation/tc-sched-smp: Fix synchronization issue
Update #3716.
2024-03-11 14:37:55 +01:00
Sebastian Huber
283f783d5d aarch64/zynqmp: Fix UART base addresses and IRQ
The base addresses and IRQ numbers for UART 0 and 1 were interchanged.
Fix this and set BSP_CONSOLE_MINOR to 0 for this BSP family.
2024-03-11 14:22:53 +01:00
Sebastian Huber
5cb666ba41 bsps/powerpc: Fix include order
The <rtems/irq.h> header file depends on the BSP-provided define
BSP_SHARED_HANDLER_SUPPORT.
2024-03-11 07:09:15 +01:00
Kinsey Moore
da967ece67 testsuites/dhrystone: Initialize before use
This resovles a warning where a variable could be used before it is
initialized in some code paths.
2024-03-05 08:49:41 -06:00
Kinsey Moore
3200933e13 cpukit/libtest: Remove unused variable
This unused variable causes a warning. It is never set or used.
2024-03-01 08:33:39 -06:00
Kinsey Moore
75d7af409f bsps/xnandpsu: Allow creation of BBT
This fixes a logic inversion that was preventing creation of a Bad Block
Table (BBT) from scratch on devices that lack one. This was discovered
during upstream integration testing. The BBT management layer in this
driver is not designed to be easily testable other than on real hardware.
2024-02-28 11:20:36 -06:00
Sebastian Huber
be81a22332 build: Fix script action
We have to use a custom dictionary to be able to set the "value" argument in
the exec() context.
2024-02-28 08:36:47 +01:00
Sebastian Huber
c454b1048f powerpc: Use RTEMS_XCONCAT()
Prefer macros with a proper namespace.
2024-02-27 16:20:18 +01:00
Sebastian Huber
a779b17764 bsps/powerpc: Include missing <rtems/irq.h>
The <rtems/irq.h> defines a legacy API.
2024-02-27 14:54:32 +01:00
Sebastian Huber
d6242196b5 bsp/qoriq: Use more specific include 2024-02-27 14:13:14 +01:00
Sebastian Huber
b544d070cf bsp/qoriq: Remove superfluous include 2024-02-27 14:13:14 +01:00
Sebastian Huber
65bfcc3944 bsp/qoriq: Remove <rtems/irq.h> in <bsp/irq.h>
The <rtems/irq.h> defines a legacy API.
2024-02-27 14:13:14 +01:00
Sebastian Huber
4fd930b7f0 bsp/qoriq: Use bsp_fatal() 2024-02-27 14:13:13 +01:00
Sebastian Huber
7e990236a7 bsp/qoriq: Use interrupt entry
Avoid heap usage in the basic BSP.
2024-02-27 14:13:13 +01:00
Sebastian Huber
4b0409f10b Update company name
The embedded brains GmbH & Co. KG is the legal successor of embedded
brains GmbH.
2024-02-27 14:10:17 +01:00
Sebastian Huber
6582b70537 testsuites/unit: Add files to group 2024-02-27 14:10:06 +01:00
Kinsey Moore
cd12bf025d testsuites/jffs2: Add test for empty NOR FS
This adds a test to very that remounting a completely used, but empty
NOR JFFS2 filesystem is possible. Previously, this triggered an edge
condition in the JFFS2 scan code that prevented remount of a correctly
formed and uncorrupted filesystem.
2024-02-26 11:07:53 -06:00
Kinsey Moore
e3972d71ef cpukit/jffs2: Handle used empty file system
On JFFS2 file systems on NOR flash or dataflash that does not have spare
area for metadata and thus does not invoke delayed writes, it is
possible to put the file system into a state where all blocks have been
written to and all files have been deleted from the filesystem. There is
a bug in the JFFS2 file system scan routine that detects this situation
as a corrupted file system since the scan routine relies on "used" space
to discriminate a valid file system when there are blocks that need to
be erased. The correct fix would require a partial rewrite of the scan
routine, so instead this patch tracks the space marked as obsolete along
with space at the end of each block that is otherwise too small to
contain a JFFS2 node so that it can me compared with the dirty space.
Corrupted data (or otherwise non-JFFS2 blocks) will still cause this
check to fail as corrupted data isn't recognized as obsoleted (deleted)
nodes.
2024-02-26 11:07:53 -06:00
Kinsey Moore
5df1d15e8b spec/zynqmp-rpu: Clean up options
The RAM origin had an unnecessary alignment requirement and the RAM
lenght had a reference that couldn't possibly be used. This removes
those obsolete option specifiers.
2024-02-23 08:36:12 -06:00
Joel Sherrill
00e71f0b4b arm/altera-cyclone-v/README: Fix use of CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS
The proper name is now CONFIGURE_MAXIMUM_FILE_DESCRIPTORS.
2024-02-23 08:35:59 -06:00
Sebastian Huber
e9c7ba3e05 libtest: Improve gcov info dump
Make sure there is no spurious empty line between the gcov info and the

*** END OF GCOV INFO BASE64 ***

line.  This helps to recalculate the hash correctly at the consumer
side.
2024-02-22 14:30:40 +01:00
Kinsey Moore
6b1222465e testsuites/dl11: Test TLS on a secondary thread
This adds a pthread that runs the test as well to increase test
coverage. The original test would have passed if all threads returned
the address of the Init task's errno since no additional threads or
tasks were checked.
2024-02-19 09:26:10 -06:00
Kinsey Moore
8f8f043234 bsps/qspipsu: Calculate correct parallel mode size
Stacked mode doubles the number of sectors and device size while
parallel mode doubles the sector size and the device size. Make sure
that this is accounted for in the device size accessor.
2024-02-19 09:26:04 -06:00
Sebastian Huber
fa3a918a2a doxygen: Fix link format 2024-02-16 09:32:04 +01:00