Commit Graph

28961 Commits

Author SHA1 Message Date
Aun-Ali Zaidi
a4e172aca7 m68k/sim68000: Remove
closes #2445.
2015-12-08 07:31:20 +01:00
Sebastian Huber
762390eca1 bsp/generic_or1k: Delete unused extern declaration 2015-12-07 14:53:48 +01:00
Sebastian Huber
452eec433b doc: Remove reference to debug mask
Update #2477.
2015-12-07 14:43:17 +01:00
Sebastian Huber
8054b1c718 Remove <rtems/debug.h>
Close #2477.
2015-12-07 13:11:07 +01:00
Sebastian Huber
a06201439a Delete _Region_Debug_Walk()
The expensive heap walks are superfluous due to the heap protection
enabled via RTEMS_DEBUG.

Update #2477.
2015-12-07 13:10:50 +01:00
Pavel Pisa
4a02a74154 bsp/tms570: ensure that linker symbol comparison to NULL is not optimized out.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
2015-12-01 21:09:41 -05:00
Joel Sherrill
4b8184f0ed psxtmtests_plan.csv: Fix typo 2015-12-01 08:33:43 -06:00
Sebastian Huber
8d6ceb1a61 bsp/t32mppc: Add primitive NULL pointer protection 2015-11-30 13:04:21 +01:00
Sebastian Huber
bbd8484b2a bsp/t32mppc: Use -Og optimization level 2015-11-27 11:17:51 +01:00
Sebastian Huber
0a3110158f bsp/t32mppc: Convert to Termios device 2015-11-27 10:39:33 +01:00
Sebastian Huber
50552818d7 Delete unused declarations and define 2015-11-27 07:25:01 +01:00
Sebastian Huber
443c61ec94 Delete empty libc_init() 2015-11-27 07:24:51 +01:00
Sebastian Huber
ac5f2442e3 Require __getreent()
This function is used by Newlib since 2013-07-09 (Git commit
9b51cd8c6b9cdd067d9648a7ab952884019c56a5).
2015-11-25 08:33:31 +01:00
Sebastian Huber
8ce0b0cb19 Fix _Assert() statement 2015-11-25 07:55:00 +01:00
Sebastian Huber
f6a1ef9fdb posix: Require struct _pthread_cleanup_context
This structure is available in Newlib since 2013-11-29 (Git commit
a534dfd26e765047621acd0eda656ded886e7108).
2015-11-24 16:00:14 +01:00
Sebastian Huber
d62dfc7d99 bsp/altera-cyclone-v: Add fatal extension handler 2015-11-24 08:33:52 +01:00
Pavel Pisa
9394aa5ed7 untar: do not exit with error when created directory already exists.
The problem exists for both RTEMS untar implementations and their
variants: Untar_FromMemory(), Untar_FromFile() and rtems_tarfs_load().

If filesystem object already exists at extracted directory path
then if it is directory, creation is ignored. Attempt
to delete/unlink object and make directory is tried for other cases.

This simple approach problem reported in ticket fixes #2413.
Behavior follows GNU tar and BSD tar practice for directories
but much more work is required to achieve full semantics
of the full featured tar implementation still.
2015-11-23 10:40:15 -05:00
Premysl Houdek
3e1196d9e1 bsp/tms570: unite code duplication in pinmux and clean SCI close per review remarks.
Signed-off-by: Premysl Houdek <kom541000@gmail.com>
2015-11-18 13:12:44 -05:00
Pavel Pisa
74172b7da0 bsp/tms570: use common tms570ls3137.inc file for all board ling variants.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
2015-11-18 10:19:46 -05:00
Premysl Houdek
38404cb42c bsp/tms570: separate Flash variants to one which boots directly and one for boot loader.
The default tms570ls3137_hdk variant is for building RTEMS
application image starting directly from start of Flash.

Variant tms570ls3137_hdk_with_loader skips 256kB at start
of Flash to allow use with application loader.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
2015-11-18 10:19:46 -05:00
Pavel Pisa
870ff8e9b6 bsp/tms570: use POM only when application image does not start at address 0.
Parameters overlay module is initialized and cleared first.
It is used later to replace exception target vectors
only if that is required.

The application loader code with CPU and SDRAM setup
code has to provide well defined pattern of instructions
at addresses 0x00000000 and 0x0000001f, because only data
read accesses can be processed reliably by POM. The expected
instruction pattern can be seen in the next example

  https://github.com/hornmich/tms570ls3137-hdk-sdram/blob/master/SDRAM_SCI_configuration/source/sys_intvecs.asm

Comments with detailed description of code, background
and reasons for selected approach have been included
in TMS570 bsp startup code.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Signed-off-by: Premysl Houdek <kom541000@gmail.com>
2015-11-18 10:19:46 -05:00
Premysl Houdek
2f95794e49 bsp/tms570: updated reserved space for vector overlay in internal RAM 2015-11-18 10:19:46 -05:00
Premysl Houdek
7e18dd9d20 bsp/tms570: fixed sci driver freeze when closing terminal bug
tms570_sci_interrupt_last_close: do not wait for old data transmit.

Signed-off-by: Premysl Houdek <kom541000@gmail.com>
2015-11-18 10:19:46 -05:00
Premysl Houdek
e5d5767e01 bsp/tms570: Pinmux support and EMAC pin definition added
Signed-off-by: Premysl Houdek <kom541000@gmail.com>
2015-11-18 10:19:46 -05:00
Premysl Houdek
6302c61fd7 bsp/tms570: EMAC control header file corrected and EMAC interrupt vector added
Signed-off-by: Premysl Houdek <kom541000@gmail.com>
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
2015-11-18 10:19:46 -05:00
Sebastian Huber
8708900e53 Provide dummy <sys/priority.h>
Required by new network stack.
2015-11-18 09:22:48 +01:00
Sebastian Huber
8f3ec7c0d9 Import latest <sys/ttycom.h> from FreeBSD
Required by new network stack.
2015-11-17 15:22:18 +01:00
Sebastian Huber
f757bb7c4b Merge with latest <sys/sockio.h> from FreeBSD
Required by new network stack.
2015-11-17 15:12:34 +01:00
Sebastian Huber
836803f72a Import latest <sys/filio.h> from FreeBSD
Required by new network stack.
2015-11-17 14:57:47 +01:00
Daniel Cederman
78cac9b092 sparc: Fix context switch on SMP
We must not load registers (e.g. PSR) from the heir context area before
the heir stopped execution.

With this patch the write to PSR is divided into two steps. We first update
the current window pointer and then we restore the status registers and
enable traps. This allows us to move the first write to PSR to be before
the write to WIM, as there is now no risk that we get an interrupt where
the CWP and WIM would be inconsistent. We only need to make sure that we
do not use any of the non-global registers or instructions that affects
CWP for three instructions after the write.

In the earlier code the non-global %o1 register was used right after the
write to PSR, which required the use of three nop:s.
2015-11-16 14:48:54 +01:00
Sebastian Huber
06ef76e3a9 Update config.guess and config.sub
Update via:

wget -O config.guess 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD'
wget -O config.sub 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD'
2015-11-12 11:30:25 +01:00
Sebastian Huber
459ebc8397 libtests/termios04: Avoid use of freed memory 2015-11-12 08:28:45 +01:00
Sebastian Huber
b84a51c8a4 score: Fix race condition on SMP
We must ensure that the Thread_Control::Wait information update is
visible to the target thread before we update its wait flags, otherwise
we may return out of date events or a wrong status.
2015-11-12 08:21:45 +01:00
Sebastian Huber
610909fa85 irq-server: Fix race condition on SMP systems 2015-11-12 08:21:45 +01:00
Sebastian Huber
5c7bfcf82e Fix interrupt epilogue for ARMv7-AR and PowerPC 2015-11-12 08:21:45 +01:00
Sebastian Huber
4fee1296e9 Introduce general purpose system server event
Use this event for the interrupt server to avoid conflicts with
application events used by interrupt handlers.
2015-11-12 08:21:44 +01:00
Gedare Bloom
f8bdd12a48 gpio: free memory in error path
Updates #2462.
2015-11-09 13:42:04 -05:00
Martin Galvan
1d55e157ca LPC1768: Fix compilation error
The LPC1768 variants have a gpio.h file whose name clashes with the gpio.h from
the new GPIO API. This results on the BSPs failing to compile.

This patch renames the LPC1768 gpio.* files to lpc-gpio.*, as it's done on other
BSPs (e.g. Beaglebone).

Closes #2441.
2015-11-05 15:27:46 +01:00
Sebastian Huber
c1e98cd45a Resurrect make/Templates/Makefile.lib
This file was accidentally removed by
370c09a1f4.
2015-11-05 11:51:20 +01:00
Sebastian Huber
8dbb14d58b bsp/irq-server: Use proper chain API 2015-11-05 11:30:21 +01:00
Sebastian Huber
aa473025f7 sapi: Add rtems_chain_get_first_unprotected()
Close #2459.
2015-11-05 11:30:09 +01:00
Sebastian Huber
eab538cf9e score: Fix warning
Close #2454.
2015-11-04 07:39:45 +01:00
Sebastian Huber
893f9efe10 sptests/spsimplesched02: Fix warning
Close #2455.
2015-11-04 07:37:41 +01:00
Isaac Gutekunst
c20847a5ad Add STM32F7 HAL Files
These files originated as:
  + STC32CubeF7 V1.1.0 from http://www.st.com/web/en/catalog/tools/PF261909
2015-11-03 17:34:20 -06:00
Isaac Gutekunst
370c09a1f4 Add STM32F4 HAL Files
The origin of this code is:
   + STM32CubeF4 V1.8.0 from http://www.st.com/web/en/catalog/tools/PF259243
2015-11-03 17:31:07 -06:00
Ben Gras
2502e26dda Leftover gpio function rename
Rename rtems_bsp_select_specific_io to rtems_gpio_bsp_select_specific_io.

Should've gone with 5c337d7. Fixes #2456.
2015-11-03 18:02:26 +01:00
Sebastian Huber
08a807b0ad libblock: Print block sizes and count 2015-11-02 08:21:49 +01:00
Sebastian Huber
09d4f629b2 libblock: Avoid NULL pointer access 2015-11-02 08:21:49 +01:00
Jan Sommer
65243416f9 ada: Add missing include
Include stackimpl.h otherwise PTHREAD_MINIMUM_STACK_SIZE cannot be
evaluated.
2015-10-30 07:44:45 +01:00
Sebastian Huber
d65ed62b28 bsp/qoriq: Fix interrupt support for T series 2015-10-28 13:06:18 +01:00