Commit Graph

21315 Commits

Author SHA1 Message Date
Stefan Hepp
f5a672ac6e Keep the full output of failed tests for debugging purposes 2013-09-27 17:16:33 +02:00
Stefan Hepp
0184bbdde8 Ignore windows lineends in test outputs, set default simulator frequency to 5Mhz 2013-09-27 16:19:43 +02:00
Stefan Hepp
1290895b7d Added path options for integration with build.sh, check for pasim return code and store pasim stats. 2013-09-25 17:42:00 +02:00
afpr
4282565682 Added run-testsuite.sh. 2013-09-25 15:32:48 +01:00
afpr
02d3da8f00 Implemented benchmark timer (for the testsuite). 2013-09-24 15:27:56 +01:00
Stefan Hepp
3c5adfeb4c It should not be necessary to modify build.sh script 2013-09-19 13:41:42 +02:00
Stefan Hepp
38527d9752 Commit bootstrapped blackfin m4 file 2013-09-19 13:09:23 +02:00
afpr
38496ed3ab Updated readme. 2013-09-18 12:49:02 +01:00
afpr
f4d307fb5c Updated testsuite (replaced posix obsolete functions). 2013-09-13 12:13:07 +01:00
afpr
35d143696f Updated interrupt return registers. 2013-09-03 09:38:55 +01:00
afpr
a6ace744e6 Implemented clock ISR.
Fixed _CPU_Context_Initialize, _CPU_Context_Switch and _CPU_Context_Restore
(stack and shadow stack management).

Fixed linker missing symbols.
2013-08-28 18:04:01 +01:00
afpr
b9765e1de1 Fixed linker missing symbols.
Fixed _CPU_Context_Switch and _CPU_Context_Restore (set function input arguments).
2013-08-22 18:35:19 +01:00
afpr
2d44c18177 Fixed scripts to build the Patmos toolchain for RTEMS. 2013-08-20 17:49:26 +01:00
afpr
988217253a Fixed linkcmds.
Fixed linker missing symbols.

Fixed compilation flags.

Fixed hard_reset, bsp_get_work_area, CPU_Context_Switch and CPU_Context_Restore.

Fixed console functions.
2013-08-02 12:39:42 +01:00
afpr
f6962ce139 Adapted make-exe rules of testsuites to the patmos-clang compiler toolchain.
Improved startup code.
2013-07-05 13:54:09 +01:00
afpr
40d91e9d2d Added readme.txt to guide users through the RTEMS installation and usage processes.
Deleted benchmark timer code (timer.c).
2013-07-01 18:51:00 +01:00
afpr
f5ccbacae1 Defined RAM variables (start address, size) in linkcmds file for the Pasim BSP. 2013-07-01 17:50:24 +01:00
afpr
3f42b0f38d Ran bootstrap and bootstrap -p scripts.
Added definitions of STDOUT_FILENO and STDERR_FILENO in bsp.h.

Removed the tools subdirectory in c/src/lib/libbsp/patmos/pasim. The tools subdirectory provide additional tools that aid in using the target board, namely a script to automate running the RTEMS Test Suites on the BSP.

For functions boot_card and abort_trap, included the __attribute__ ((used)) attribute in the file headers, and removed the attribute in the actual function declaration.
2013-06-28 15:00:24 +01:00
afpr
a2990ea7b8 Added the linkcmds.base file to the commit.
Fixed some hard_reset code, mostly related to the assembly nomenclature.

In CPU_Context_Switch and CPU_Context_Restore routines, added instruction to reset r0, and spilled cache in CPU_Context_Restore.

Reviewed the CPU_Context_Initialize routine.

Removed the CPU_Minimum_Stack structure from the Patmos CPU, and reviewed all the Patmos context areas (general, floating point, interrupt). Removed structure CPU_Trap_table_entry, macro _CPU_Context_Initialization_at_thread_begin. Adapted the _CPU_Fatal_halt macro to Patmos.
2013-06-27 19:02:39 +01:00
afpr
236e375111 Fixed the linkcmds file for the Pasim BSP and included a base linkcmds file for the Patmos CPU.
Added (1) zeroing out the uninitialized data section .bss and (2) copy the initialized data from ROM to RAM to the hard_reset function in start.S.
2013-06-26 19:28:55 +01:00
afpr
bdcc366d63 Updated configuration files to leave deleted files out of the build process (pci, shmm, spurious, bspidle, ...). 2013-06-25 18:52:50 +01:00
afpr
7a34a658b1 Removed spurious trap handler from the Patmos CPU.
Substituted the whole timer.c with the content retrieved from the no_cpu/no_bsp folder.

Removed the timing test suite (times file) from the Pasim BSP.

Added bsp_specs to the Pasim BSP.
2013-06-25 18:30:09 +01:00
afpr
84591aa5f9 Substituted the whole ckinit.c with the content retrieved from the no_cpu/no_bsp folder.
Fixed the storage of the hard_reset function in register r30 in the hard_reset function.

Removed function bspidle.S that defines the idle thread from the Pasim BSP.

Removed snooping function from bspstart.c in Pasim.
2013-06-25 18:29:08 +01:00
afpr
1151b96bc9 Fixed the start.S file for the Patmos CPU, namely hard_reset and exit functions, as well as the starting addresses present in pasim.h 2013-06-24 18:50:54 +01:00
afpr
b1ef2d75f0 Changed debugputs.c, console.c and pasim.h in libbsp/patmos/pasim to add TTY driver support for the Pasim bsp 2013-06-24 17:01:20 +01:00
afpr
8af38bc5b3 Removed pci and shared memory management from the Patmos CPU 2013-06-18 18:18:34 +01:00
afpr
bb0f6beb9e Initial support for the Patmos BSP 2013-06-18 10:49:50 +01:00
Daron Chabot
833eeae358 Add c++ guard to header. 2013-05-16 11:47:09 +02:00
Sebastian Huber
8949e5b1a1 score: Fix _Objects_Shrink_information()
The chain iteration was wrong.  The chain tail is not an object.
2013-01-07 16:34:18 +01:00
Sebastian Huber
39691cd1b1 rtems: Critical fix for events
Commit 4b45c1393c marked a test in
_Event_Timeout() as debug only.  This test is required also in non-debug
configurations since otherwise state corruption can happen.  A revised
test sptests/spintrcritical10 checks the relevant sequences.
2013-01-07 15:21:40 +01:00
Sebastian Huber
073e3e106b score: Critical fix for timer server
Under certain conditions it is possible that a call to
_Watchdog_Adjust_to_chain() happens with a unit parameter value of zero
(for example sptests/spintrcritical17).  Remove superfluous checks that
prevent an adjust to a chain of a watchdog chain which first element has
a delta zero value.
2012-12-06 10:01:24 +01:00
Dylan Maxwell
d29f206209 tftpfs: PR1624: Fix parsing of hostnames and paths 2012-12-06 09:50:20 +01:00
Ralf Corsépius
c160bc2e97 Remove stray '/'. 2012-10-10 14:49:19 +02:00
Gedare Bloom
d692342a01 Delete lingering bspopts.h.in file 2012-08-09 10:26:07 -04:00
Ralf Corsépius
67aeb83f27 Use http://www.rtems.org/bugzilla as bug-URL. 2012-08-09 09:49:13 -04:00
Sebastian Huber
811e4b98ff libblock: Fix purge device tree traversal 2012-08-09 09:49:13 -04:00
Sebastian Huber
57d29cd5a9 bsp/genmcf548x: Enable FPU in BSP startup code 2012-05-02 10:27:08 +02:00
Sebastian Huber
eeb965b325 bsp/genmcf548x: Fix BSP options 2012-05-02 10:26:45 +02:00
Sebastian Huber
29c8aa6494 libblock: PR2040: Fix recycle destination update
Check the availablity of a recycle destination segment only when it is
necessary to avoid missing resycle source segment erasures.
2012-04-16 11:08:50 +02:00
Sebastian Huber
4abb14e5ca libblock: PR2040: Add starvation threshold
Do not use the unavailable block count as the erased blocks starvation
threshold.  Use instead the block count of the largest segment.  This
improves the starvation resolution gain of available blocks.
2012-04-16 11:08:38 +02:00
Sebastian Huber
108d6de7be PR2040: libtests/flashdisk01: New test 2012-03-14 11:27:15 +01:00
Sebastian Huber
941d470db4 PR2040: libblock: Flash disk starvations statistic 2012-03-14 11:27:14 +01:00
Sebastian Huber
1c47c470b3 PR2040: libblock: Flash disk documentation 2012-03-14 11:27:14 +01:00
Sebastian Huber
7b646be2bb PR2040: libblock: Fix return status 2012-03-14 11:26:17 +01:00
Sebastian Huber
b3142bdc50 PR2040: libblock: Avoid erased blocks starvation
The compaction process needs erased blocks.  It is only possible to
erase an entire segment.  Thus in order to make a progress we always
need enough erased blocks to empty a used or available segment which can
be erased in turn.  A (possibly the worst case) lower bound of erased
blocks is the block count of the largest segment.  The number of
unavailable blocks specified by the configuration will be used to
determine the erase blocks starvation situation.  The number of
unavailable blocks must be greater than or equal to the number of blocks
in the largest segment.
2012-03-14 11:26:17 +01:00
Sebastian Huber
d22a91e8f2 PR2040: libblock: Track number of erased blocks 2012-03-14 11:26:17 +01:00
Sebastian Huber
55e4783372 PR2040: libblock: Use segment control as parameter 2012-03-14 11:26:17 +01:00
Sebastian Huber
f38caffa62 PR2039: Fix NULL pointer access
In case rtems_bdbuf_read() returns an error status, the block device
buffer pointer will be set to NULL.  In RFS the chain node of the block
device buffer will be used for RFS purposes.  We must not do this after
an erroneous read.
2012-03-14 09:04:40 +01:00
Sebastian Huber
cb648b75ff PR 2026/filesystem - Fix semaphore attributes
Semaphores of type RTEMS_SIMPLE_BINARY_SEMAPHORE are not suitable for a
mutex.  Use RTEMS_BINARY_SEMAPHORE with RTEMS_INHERIT_PRIORITY instead.
2012-02-23 11:42:32 +01:00
Joel Sherrill
3f85deb858 PR 2015 - LEON3: make SHM driver configurable using weak symbols
PR 2015/bsps

Since the configuration struct is always present one can let
DATA initialize it to reduce footprint, at the same time it
is made weak to let the user able to configure the SHM driver
without editing the driver code.

Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
2012-02-17 14:25:13 -06:00