Commit Graph

27006 Commits

Author SHA1 Message Date
Daniel Cederman
93b000e645 bsp/leon3: Replace the define LEON3_MP_IRQ with a weakly linked variable
The LEON3_MP_IRQ define is used to pick the IRQ to be used by the
shared memory driver and for inter-processor interrupts. On some LEON3
systems, for example the GR712RC, the default value of 14 is not suitable.
To make this value configurable from the application, it is replaced with
a weakly linked variable that can be overridden from the application.
2014-10-02 07:29:05 +02:00
Sebastian Huber
456eab7dc8 pppd: Import change from NetBSD
This avoids the use of gethostbyname() in case the "noipdefault" option
is given.  The gethostbyname() uses DNS by default.
2014-09-30 14:06:09 +02:00
Sebastian Huber
805360b8e5 pppd: Fix warnings 2014-09-30 14:06:09 +02:00
Sebastian Huber
33739be8af libnetworking: Update due to Termios changes 2014-09-30 14:06:09 +02:00
Hesham ALMatary
fbe59f7c67 or1ksim: Console: implement uart_read_polled
Implement uart_read_polled which is needed for any application that
reads input from users. It works fine with pppd, capture, and all
termios tests.
2014-09-29 14:37:25 -05:00
Hesham ALMatary
5464752f79 or1k fix bug: Initialize thread context with higher stack address.
Since or1k architecture stack grows down, threads should be initialized
with high stack addresses instead of lower ones. This is done in
_CPU_Context_Initialize function.
2014-09-29 14:36:52 -05:00
Sebastian Huber
79bbb1cb67 bsp/genmcf548x: Use inline cache implementation 2014-09-23 10:46:37 +02:00
Sebastian Huber
c3bf343052 bsp/genmcf548x: Delete duplicate network config 2014-09-23 10:46:37 +02:00
Sebastian Huber
5323247c31 m68k: Use CPU_TIMESTAMP_USE_STRUCT_TIMESPEC
Converting 64-bit nanoseconds values into the common struct timeval or
struct timespec formats requires a 64-bit division to get the seconds
value.  Performance analysis of high network loads revealed that this is
too costly on PowerPC.
2014-09-23 10:46:36 +02:00
Sebastian Huber
30e5e76540 powerpc: Use CPU_TIMESTAMP_USE_STRUCT_TIMESPEC
Converting 64-bit nanoseconds values into the common struct timeval or
struct timespec formats requires a 64-bit division to get the seconds
value.  Performance analysis of high network loads revealed that this is
too costly on PowerPC.
2014-09-23 10:46:36 +02:00
Sebastian Huber
dadd7cd2fd score: Delete Thread_Wait_information::Block2n
This field is no longer used.
2014-09-23 10:46:36 +02:00
Sebastian Huber
90ce69b0f1 score: Critical fix for _Thread_queue_Dequeue()
Do not return NULL in case we can dequeue the executing thread.  This
bug was introduced with 3250664700.
2014-09-19 14:25:34 +02:00
Sebastian Huber
6f1e1b308c sptests/spintrcritical22: New test 2014-09-19 14:25:34 +02:00
Joel Sherrill
b422c54948 doc/shell: Correct build issues from fc9f8f5085 2014-09-18 08:57:11 -05:00
Sebastian Huber
386d8b5235 sparc: Add comment 2014-09-18 15:33:33 +02:00
Sebastian Huber
bdd6082618 bsps: Fix build error
Fix build error introduced in f535fe5311.
2014-09-18 11:07:41 +02:00
Sebastian Huber
15d7261bec telnetd: Use socklen_t 2014-09-18 08:09:09 +02:00
Sebastian Huber
8f0a2c995b smptests/smpload01: Report profiling only once
Rely on test extension to report profiling.
2014-09-17 10:31:30 +02:00
Sebastian Huber
c040b113da redirector: Rename rtems_stdio_redirect_t
Rename rtems_stdio_redirect_t to rtems_stdio_redirect since the
namespace *_t is reserved by POSIX, see also The Open Group Base
Specifications Issue 6 IEEE Std 1003.1, 2004 Edition, 2.2.2 The Name
Space.
2014-09-17 07:21:35 +02:00
Joel Sherrill
2195a95fb7 Libmisc/Makefile.am: Build with networking disabled 2014-09-16 17:41:43 -05:00
Joel Sherrill
f535fe5311 tod.h -> libcsupport like other driver and helper prototype files
This rippled into the handful of files that should have been using
<rtems/tod.h>.
2014-09-16 16:09:13 -05:00
Joel Sherrill
f641b15e18 Revert: rtems-rfs-buffer.c: Correct printf() format specifiers to eliminate warnings
This may actually be a problem in inttypes.h.
2014-09-16 16:09:13 -05:00
Joel Sherrill
6cd20744e5 pc386/.../bsp.h: Do not include crt.h
crt.h defines such lovely constants as "RED" and "GREEN" which
have a nasty habit of conflicting with non-BSP code. There is
no reason to include this private .h from bsp.h and pollute the
namespace for applications.
2014-09-16 16:09:12 -05:00
Joel Sherrill
8fbe2e69b5 Use correct prototype of benchmark_timer_read()
This change starts with removing the effectively empty file
timerdrv.h. The prototypes for benchmark_timer_XXX() were in
btimer.h which was not universally used. Thus every use of
timerdrv.h had to be changed to btimer.h. Then the prototypes
for benchmark_timer_read() had to be adjusted to return
benchmark_timer_t rather than int or uint32_t.

I took this opportunity to also correct the file headers to
separate the copyright from the file description comments which
is needed to ensure the copyright isn't propagated into Doxygen
output.
2014-09-16 16:09:12 -05:00
Hesham ALMatary
c080c3434b or1k: New cache manager.
Implement new cache functions for or1k and create new bspstart function
for or1ksim to initialize instruction and data caches. Also, sim.cfg
is modified to enable/confiure cache units.
2014-09-16 12:46:42 -05:00
Hesham ALMatary
bbecf04172 or1ksim: Update README
Modify README to provide instruction on how to run or1ksim BSP on
latest or1ksim emulator built from github repo and add commands
to run or1ksim BSP on QEMU.
2014-09-16 09:53:28 -05:00
Hesham ALMatary
d2c7616057 or1ksim: Implement cpu counter functions. 2014-09-16 09:53:05 -05:00
Hesham ALMatary
e0aef221a2 score/cpu/or1k: Follow no_cpu ISR_Handler algorithm.
This patch adjusts ISR_Handler to exactly follow the pseudo code introduced
in
http://rtems.org/onlinedocs/doc-current/share/rtems/html/porting/Interrupts-Interrupt-Dispatching.html
It adds two new checkings on _Thread_Dispatch_disable_level and _ISR_Nest_level
after returning from the C handler.
2014-09-16 09:53:01 -05:00
Hesham ALMatary
5f56d2679a or1ksim: work-around to make or1ksim tick timer accurate.
This patch avoids unexpected behavior when initializing tick timer registers.
Initializing these registers fires unexpected exceptions and interrupts even
though RTEMS has not enabled interrupts yet. So, a little long interval added
to allow RTEMS to finish the remaining initialization work before running the
application. The tick timer interval is adjusted to reflect an accurate
timing for RTEMS applications.
2014-09-16 09:52:58 -05:00
Hesham ALMatary
eb14fc2b2e OpenRISC: Account for red-zone (fixup printf bug).
This patch allocate a space in the stack to account for red-zone
that gcc may utilize for the use of leaf functions. Care must be
taken to handle this red-zone from many places:
1- Upon creation of a new thread stack.
2- Once an interrupt entred.

Also moving the enable-thread-dispach() and increment ISR level before
checking if dispatch needed was required.

The previous modifications solved the printf bug which disabled ticker
to output strings after context switches that arise from Thread_Delay_ended.
2014-09-16 09:52:56 -05:00
Sebastian Huber
7f8a978e6b sptests/sp07: Minimize thread dispatch latency
Do not use sprintf() in thread dispatch critical sections to avoid
corruption of profiling samples.  Update test to reflect thread the life
cycle changes.
2014-09-16 15:43:15 +02:00
Daniel Cederman
6e1206ab46 smptests/smpcache01: Remove invalidation of data cache lines from test
Invalidation of entire data cache might cause data written to the stack
to get lost.
2014-09-16 10:29:42 +02:00
Chris Johns
fc9f8f5085 doc: Sort the shell file commands into alphabetical order. 2014-09-16 15:19:58 +10:00
Chris Johns
b299960aed shell: Add an md5 hash command for files.
This command lets you get an MD5 hash for a file in an RTEMS file system.
2014-09-16 15:19:58 +10:00
Chris Johns
ebf9a057b5 libmisc: Add a stdio redirector helper.
This module makes it easy to redirect and capture stdout, stderr or any
other fd in your application.

The captured data can be sent off board, for example using syslog,
or buffered and displayed in a web page.
2014-09-16 15:19:58 +10:00
Chris Johns
a8fa078f1e shell: Add a ping command.
The ping code is taken from a recent FreeBSD release. Some options have been
tested, other not tested or do not work. This could be due to the age of
our TCP/IP stack.

This version of ping will not work if more than 64 file descriptors are
open at once because the select FD size is 64 as set in newlib.
2014-09-16 15:19:58 +10:00
Sebastian Huber
1434dbd6eb doc: Clarify ABI in SPARC CPU supplement 2014-09-12 16:13:55 +02:00
Sebastian Huber
f9eca790ac sptests/spintrcritical_support: Optimize busy loop 2014-09-12 16:06:29 +02:00
Sebastian Huber
73b5d8bf20 sptests/spintrcritical10: Avoid undefined memory 2014-09-12 16:06:26 +02:00
Sebastian Huber
74493f053e bsps/arm: Delete obsolete compiler flags
These flags are obsolete with the EABI based ARM tool chain.
2014-09-11 15:05:32 +02:00
Sebastian Huber
4c9f02d3b3 dosfs: Check error status 2014-09-11 13:04:42 +02:00
Sebastian Huber
c48cf0bd0c score: Rename _BSP_Exception_frame_print()
Rename _BSP_Exception_frame_print() to _CPU_Exception_frame_print() to
be in line with other CPU port functions.
2014-09-11 09:10:16 +02:00
Sebastian Huber
6e0000ca61 powerpc: Delete PPC_BSP_HAS_FIXED_PR288 2014-09-11 09:07:36 +02:00
Sebastian Huber
f3508c44b5 tmtests/tmcontext01: Improve cache dirty function
Increment by cache line size to allow more cycles per second.
2014-09-11 07:33:16 +02:00
Sebastian Huber
ecf64a5eb9 bsps/arm: Add a9mpcore_clock_initialize_early()
This is necessary to use the CPU counter converter even in case no clock
driver is present, e.g. in tmcontext01.
2014-09-10 16:17:02 +02:00
Hesham ALMatary
0facefc30f or1k: Let CPU/BSP Fatal handler have access to source
This patchs follows the latest commit by Daniel Hellstrom that
requires _CPU_Fatal_halt to have _source passed to it along with
_error number.
2014-09-10 15:10:41 +02:00
Sebastian Huber
e09f8b0808 sptests/spfatal07: Fix end of test message 2014-09-10 14:46:03 +02:00
Daniel Hellstrom
f82752a474 Let CPU/BSP Fatal handler have access to source
Without the source the error code does not say that much.
Let it be up to the CPU/BSP to determine the error code
reported on fatal shutdown.

This patch does not change the current behaviour, just
adds the option to handle the source of the fatal halt.
2014-09-10 14:06:08 +02:00
Sebastian Huber
12ab8d67e4 bsps/arm: Fix get cache size 2014-09-10 11:29:54 +02:00
Sebastian Huber
4768ae0feb bsps/arm: Fix invalidate instruction cache
Do not invalidate the entire L2 cache since it is a uniform cache in
_CPU_cache_invalidate_entire_instruction().  For consitency do not touch
the L2 cache even for the range function
_CPU_cache_invalidate_instruction_range().
2014-09-10 11:29:54 +02:00