Commit Graph
27478 Commits
Author SHA1 Message Date
Sebastian Huber 6042fdb7dd bsp/mcf5206elite: Remove <i2c.h> inlude in <bsp.h>
This prevents a compile-time error in libtests/i2c01.
2015-01-14 07:53:00 +01:00
Sebastian Huber 77c5ddd496 smptests/smpmrsp01: Fix task delete race condition
Do not supsend self while waiting for termination since the
rtems_task_delete() may take place while the rtems_task_suspend() waits
for the Giant lock preventing delivery of the inter-processor interrupt.
The result is a suspended and terminated thread (this is a valid state,
but leads in this case to a test failure).
2015-01-14 07:40:49 +01:00
Joel Sherrill 125e23bdcf tools/cpu/nios2/ptf.c: Add include to fix warnings 2015-01-13 15:41:32 -06:00
Joel Sherrill 85dbf520f8 libcpu/powerpc/mpc6xx/mmu/bat.c: Now compiles with gcc 5.x 2015-01-13 15:41:32 -06:00
Sebastian Huber f2e6c3e84a bsp/qoriq: Add T2080RDB and T4240RDB variants 2015-01-13 11:38:18 +01:00
Sebastian Huber 3e2647a714 powerpc: AltiVec and FPU context support
Add AltiVec and FPU support to the Context_Control in case we use the
e6500 multilib.

Add PPC_MULTILIB_ALTIVEC and PPC_MULTILIB_FPU multilib defines.  Add
non-volatile AltiVec and FPU context to Context_Control.  Add save/restore of
non-volatile AltiVec and FPU to _CPU_Context_switch().  Add save/restore
of volatile AltiVec and FPU context to the exception code.  Adjust data
cache optimizations for the new context and cache line size.
2015-01-13 11:37:28 +01:00
Sebastian Huber c279d0a33f bsps/powerpc: Use e500 exc categories for e6500
This is not correct, but works for now.
2015-01-13 11:37:28 +01:00
Sebastian Huber 99a1f1229f nios2: Disable assembler warning
Close #2232.
2015-01-13 11:37:28 +01:00
Anthony Green 5139d21430 moxiesim: Add conditional logic to handle old and new gas syntax 2015-01-10 13:04:06 -06:00
Sebastian Huber 5759510c96 arm: Fix compile error for ARMv6-M multilib
ARMv6-M is not supported since we cannot directly use the ARMv7-M code
due to some inline assembler statements.

Close #2231.
2015-01-09 14:06:41 +01:00
Sebastian Huber b1268e6d6b powerpc: Add AltiVec register ASM defines 2015-01-09 14:05:46 +01:00
Sebastian Huber 2e19bfde2f powerpc: Use PPC_HAS_FPU
Provide floating point context support only if PPC_HAS_FPU == 1.
2015-01-09 14:05:46 +01:00
Sebastian Huber 0d0095f1f0 powerpc: Add PPC_STACK_ALIGN_POWER
Simplify PPC_STACK_ALIGNMENT definition.
2015-01-09 14:05:46 +01:00
Sebastian Huber 7c16e1a514 powerpc: Set PPC_DEFAULT_CACHE_LINE_SIZE for e6500 2015-01-09 14:05:08 +01:00
Sebastian Huber 84d3b9b0a2 powerpc: Use PPC_DEFAULT_CACHE_LINE_SIZE
Use it for the default PPC_CACHE_ALIGNMENT.  Use it for
PPC_STRUCTURE_ALIGNMENT.
2015-01-09 14:03:35 +01:00
Sebastian Huber 7f28f23726 powerpc: Delete _CPU_IRQ_info 2015-01-09 14:03:35 +01:00
Sebastian Huber bb7bd148ba powerpc: Use alternate time base for CPU counter 2015-01-09 14:03:35 +01:00
Sebastian Huber 691cc20289 bsp/qoriq: Fix nanoseconds extension 2015-01-09 14:03:35 +01:00
Sebastian Huber a532301c30 bsp/qoriq: Increase MAS0[ESEL] width 2015-01-09 14:03:34 +01:00
Sebastian Huber 0e05095ab5 bsp/qoriq: Add MAS7 support for MMU
This enables usage of the full real address space which is 40-bit on the
T2080 for example.
2015-01-09 14:03:34 +01:00
Sebastian Huber 71b611d172 bsps/powerpc: ppc_exc_initialize_interrupt_stack() 2015-01-09 14:03:34 +01:00
Sebastian Huber 7bad67256e bsps/powerpc: Add TMR access macros 2015-01-09 14:03:34 +01:00
Sebastian Huber c32a128cb2 bsps/powerpc: Add cache size functions 2015-01-09 14:03:34 +01:00
Sebastian Huber 7d26f60a1b bsps/powerpc: Delete C pre-processor warning
Do not warn about not implemented cache functions.
2015-01-09 14:03:34 +01:00
Sebastian Huber 494df99f1c bsps/powerpc: Support for 64 byte cache lines 2015-01-09 14:03:33 +01:00
Sebastian Huber 5175ac6a87 bsps/powerpc: Support a cache alignment of 64
Give the BSP the ability to define PPC_CACHE_ALIGNMENT.
2015-01-09 14:03:33 +01:00
Sebastian Huber f6660bfba4 bsps/powerpc: Support e6500 indentification 2015-01-09 14:03:33 +01:00
Sebastian Huber 06251bb415 bsps/u-boot: Add optional text and data sections 2015-01-09 14:03:33 +01:00
Sebastian Huber b79f98f68a bsps/u-boot: Update due to API changes 2015-01-09 14:03:33 +01:00
Sebastian Huber fca5892454 bsps/mpc83xx: Fix warnings 2015-01-09 14:03:33 +01:00
Sebastian Huber b3ed66a17f libtests/crypt01: Increase stack size 2015-01-09 14:03:32 +01:00
Sebastian Huber e7d175affb smptests/smpwakeafter01: Fix task count 2015-01-09 14:03:32 +01:00
Sebastian Huber ad0743db07 smptests/smpmrsp01: Update run indicator only once
On the Freescale T2080 the excessive concurrent write/read lead to a
livelock condition.
2015-01-09 14:03:32 +01:00
Sebastian Huber 2a4f9d7f18 smp: Add and use _SMP_Should_start_processor() 2015-01-09 14:03:32 +01:00
Sebastian Huber cfe6d05e3b capture: Fix lock initialization 2015-01-09 14:03:32 +01:00
Joel Sherrill 7cdabc49ca pc386: Add Edison base support
The current support for the Edison supports a single polled
UART for input and output plus a simulated clock tick. The
activities forward for supporting the Edison have been posted
on the RTEMS mailing lists and at:

http://rtemsramblings.blogspot.com/2014/12/intel-edison-and-rtems-road-forward.html
2015-01-04 13:44:57 -06:00
Joel Sherrill 09220c8129 untar.c: Coverity ID 26151 and reformat
The Coverity issue was an ignored return value from a read()
in a loop which should have been a seek() since the data
read was ignored.

The file itself needed reformatting to conform to RTEMS style.
2015-01-04 13:44:57 -06:00
Joel Sherrill 1ae7baf2d8 clock_driver_simidle.c: Add BSP_CLOCK_DRIVER_DELAY
This allows the BSP to define an optional spin delay which is
useful for making time appear to pass at a rate closer to
wall time. On the Edison, this was used with a polled console
driver to slow polling to a reasonable rate and make time
pass reasonably close to correctly even with no clock tick
support.
2015-01-04 13:44:57 -06:00
Joel Sherrill 0a36af04bb pc386: Add BSP_ENABLE_COM1_COM4 BSP option
This allows the support for the legacy COM1-COM4 serial ports
to be completely disabled. It is needed to prevent hangs on some
hardware. In particular, the Intel Edison where it is not present.
2015-01-04 13:44:56 -06:00
Joel Sherrill 93546b879f pc386: Add BSP_ENABLE_IDE BSP option
This allows the IDE support to be completely disabled. It is needed to
prevent hangs on some hardware. In particular, the Intel Edison where
it is not present.
2015-01-04 13:44:56 -06:00
Joel Sherrill 607c85465d pc386: Add BSP_ENABLE_VGA BSP option
This allows the VGA and keyboard console to be completely disabled.
It is useful on PCs without displays and prevents a very slow boot
time on the Intel Edison.
2015-01-04 13:44:56 -06:00
Nick Withers 86364e8c6a Correct error return mismatches
Closes #2139
2014-12-23 22:49:26 -05:00
Nick Withers 2d5c486914 Use fixed-width C99 types for PowerPC in_be16() and co.
Also use the const qualifier on the address pointer's target in in_*()

Closes #2128
2014-12-23 22:40:32 -05:00
Till Strauman 2573e698d1 pc386: scan all functions of multi-function PCI devices
The current algorithm scans all PCI busses (0..ff)
 and all devices (0..31) on each bus for bridges
 and determines the maximum of all subordinate
 busses encountered.

 However, the algorithm does not scan all functions
 present in multi-function devices -- I have a PCI express
 root complex (82801H) where multiple (non-zero index)
 functions are 'PCI bridges' whose subordinate bus number is
 missed by the original algorithm.

 This commit makes sure that the scan
 is extended to all functions of multi-function
 devices.

 See #2067
2014-12-23 22:27:25 -05:00
Peter Dufault da10694a48 libnetworking: Make rtems_dhcp_failsafe() run time configurable
rtems_dhcp_failsafe() can be configured at compile time with
various options. This change makes it possible to instead configure
it at runtime.

This will make it marginally larger. I haven't measured the difference
but I'll guess it's in the lower hundreds of bytes. The change could be
modified to leave it either compile time or run time configurable,
I prefer the simplicity of a single method.

closes #1905
2014-12-23 22:14:50 -05:00
Gedare Bloom 0a789927c5 doc: add some red-black tree documentation
closes #2059
2014-12-19 12:14:06 -05:00
Sebastian Huber 8ce00eaf48 posix: Delete unused _POSIX_Threads_Get()
Close #1759.
2014-12-18 10:48:35 +01:00
Sebastian Huber 864d3475a5 smp: Fix timeout for MrsP semaphores
The previous timeout handling was flawed.  In case a waiting thread
helped out the owner could use the scheduler node indefinitely long.
Update the resource tree in _MRSP_Timeout() to avoid this issue.

Bug reported by Luca Bonato.
2014-12-18 08:33:29 +01:00
Sebastian Huber 481054e087 bsp/moxiesim: Add cache manager implementation
Close #2220.
2014-12-17 08:13:46 +01:00
Sebastian Huber 48cfe6819e doc: Add multilib section to CPU supplement
Add multilib section for ARM and PowerPC
2014-12-16 11:34:47 +01:00