Commit Graph

27647 Commits

Author SHA1 Message Date
Sebastian Huber
2c8843882d IMFS: Fix warning 2015-03-05 11:23:09 +01:00
Sebastian Huber
29d36fa594 IMFS: Include missing header file 2015-03-05 11:23:09 +01:00
Sebastian Huber
81c73acf41 IMFS: Fix warning 2015-03-05 11:23:09 +01:00
Sebastian Huber
5d42857662 libblock: Fix warning 2015-03-05 11:23:08 +01:00
Sebastian Huber
b8aa1c10b0 score: C/C++ compatibility macros for ISR locks
Update #2273.
2015-03-05 11:22:48 +01:00
Sebastian Huber
5b5d2fd4f2 Filesystem: Delete unused null_op_fsmount_me() 2015-03-05 09:37:36 +01:00
Alexander Krutwig
7f577d3a56 tests: Refactor parallel test execution 2015-03-05 09:12:14 +01:00
Alexander Krutwig
51acbdc19c score: Documentation 2015-03-05 08:45:36 +01:00
Sebastian Huber
18d0a49129 Move test support from sapi to libmisc/testsupport 2015-03-05 08:44:59 +01:00
Sebastian Huber
8ac3549db3 score: Delete unused CPU_UNROLL_ENQUEUE_PRIORITY 2015-03-05 08:12:24 +01:00
Hesham ALMatary
3358d62fe7 score/cpu/or1k: Add cpuatomic.h to fix broken build.
4e3d9a4d6c broke or1k, cpuatomic.h has to
be added to all architectures.
2015-03-04 17:24:21 -06:00
Joel Sherrill
461a9302bc capture01: Update screen file 2015-03-04 14:53:36 -06:00
Joel Sherrill
57a914a3fb Add simple test for scandir() on all file systems tested
updates 1394
2015-03-04 14:46:14 -06:00
Gedare Bloom
56c7192606 psxtests/psxclock01: use clock() and CLOCKS_PER_SEC
Closes #2182
2015-03-04 15:38:53 -05:00
Gedare Bloom
76f37656a2 libcsupport: scale times() call to microseconds 2015-03-04 15:38:52 -05:00
Sebastian Huber
e50297e36c score: ISR lock C/C++ compatiblity issue
Empty structures are implementation-defined in C.  GCC gives them a size
of zero.  In C++ empty structures have a non-zero size.

Add ISR_LOCK_DEFINE() to define ISR locks for structures used by C and
C++.

Update #2273.
2015-03-04 12:03:04 +01:00
Sebastian Huber
d2ffb7dc77 score: Add and use _Thread_Enable_dispatch_body()
Update #2273.
2015-03-04 12:03:02 +01:00
Sebastian Huber
b99be6e53e score: Inline _Thread_Disable_dispatch() for SMP 2015-03-04 12:03:01 +01:00
Sebastian Huber
2b7fe35688 score: Add parameter to Giant acquire/release
Update #2273.
2015-03-04 12:02:50 +01:00
Sebastian Huber
c5436ff482 smptests/smpcapture01: Avoid livelock condition 2015-03-04 11:59:45 +01:00
Sebastian Huber
0324410836 smptests: Do not use Giant directly
This ensures that thread dispatching is disabled.  A Giant
acquire/release pair must take place in the same processor.
2015-03-04 07:46:16 +01:00
Joel Sherrill
396ce49604 xdr_float.c: Fix typo 2015-03-03 14:51:24 -06:00
Hesham ALMatary
262a0d7bbd or1k/or1k-exception-default.c: Eliminate dependency on BSP provided .h file 2015-03-03 15:31:04 -05:00
Hesham ALMatary
396557412a librpc: Include or1knd part of the recongnized CPUs at xdr_float.c
Close #2256
2015-03-03 13:51:47 -05:00
Joel Sherrill
e4154b8e4b mips BSPs: Remove .global for unprovided symbol
closes 2253
2015-03-03 09:18:00 -06:00
Sebastian Huber
4ccb79bc1b score: Enable SMP barriers for all configurations 2015-03-02 12:23:48 +01:00
Martin Galvan
991fdb330b ARM: Add BSP_START_NEEDS_REGISTER_INITIALIZATION
This patch adds the macro BSP_START_NEEDS_REGISTER_INITIALIZATION and
three hooks for BSP-specific register init code to arm/shared/start.S.
Said hooks are bsp_start_init_registers_core (intended for initializing
the ARM core registers), bsp_start_init_registers_banked_fiq (for the
FIQ mode banked registers) and bsp_start_init_registers_vfp (for the FPU
registers). BSP_START_NEEDS_REGISTER_INITIALIZATION would be defined in
a BSP's configure.ac (so that it appears in its bspopts.h).

This patch also adds the register init code required by the TMS570.
We've tested it with the tms570ls3137_hdk.cfg config and it works fine.
2015-02-27 12:05:36 +01:00
Martin Galvan
63e91fe689 ARM: Fix _ARMV4_Exception_fiq_default
In _ARMV4_Exception_fiq_default, set the F bit of the SPSR so that when
it gets loaded back to the CPSR in save_more_context it won't re-enable
the FIQs.

Tested on a TMS570LS3137.
2015-02-27 11:56:51 +01:00
Sebastian Huber
6357e14aac psxtests/psx05: Adjust test case
Update #2170.
2015-02-26 12:55:43 +01:00
Sebastian Huber
bd1c92480a sptests/sp76: Check that the right task executes 2015-02-26 10:20:47 +01:00
Gedare Bloom
c0e01a28da posix: fix error return code for pthread_mutex_trylock
pthread_mutex_trylock() should return EBUSY if the mutex is already
locked. The translations of CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED is
EDEADLK which is correct for pthread_mutex_lock(). This fixes the
translation for trylock.

Closes #2170.
2015-02-25 15:00:41 -05:00
Chris Johns
ee87007748 Panic on RTEMS_FAST_MUTEX network semaphore claim/release.
Fix the code to panic rather than perform a bad access if the network
semaphore is accessed without the stack being intialised.

Closes #2229.
2015-02-24 12:53:29 -05:00
Gedare Bloom
9d090fb70a sparc64: fix copyright notices.
The sparc64 port had some incorrect copyright notices affixed to
source code files.
2015-02-23 15:42:59 -05:00
Jeffrey Hill
ced84fc0ea rpc: misaligned pointer dereference in clnt_udp.c line 363
closes #2248
2015-02-23 12:28:32 -05:00
Jeffrey Hill
49ff36b8d7 rpc: misaligned address exception in get_myaddress.c
closes #2249 see #1401
2015-02-23 12:08:33 -05:00
Sebastian Huber
748fbd1b3f rtems-bin2c: Fix Windows build
Update #2238.
2015-02-23 16:55:12 +01:00
Till Straumann
25e14e3193 networking: alignment exception in ioctl(SIOCGIFCONF)
Access memory using a byte stream when copying to avoid unaligned
access. update #1401
2015-02-23 10:49:50 -05:00
Gedare Bloom
1281c34a23 Use counted strnlen in bin2c. Closes #2238. 2015-02-23 10:38:37 -05:00
Gedare Bloom
83fe4468bc psxtests: add string param to printf. closes #2241 2015-02-23 09:59:49 -05:00
Martin Galvan
dc9aaf7ced ARM: Support VFP-D16
This patch allows the existing FPU code to support both VFP-D16 and
VFP-D32. According to ARM, writes to D32DIS are ignored for D16 so
there's no need to enclose the bic instruction with an #ifdef. We tested
it on a TMS570LS3137 using TI initialization code and it works fine.

Signed-off by: Martin Galvan <martin.galvan@tallertechnologies.com>
2015-02-20 18:52:58 +01:00
Sebastian Huber
a45dfa1447 IMFS: Fix copy on write for linfiles 2015-02-20 09:42:15 +01:00
Nick Withers
5eb27ce409 Don't fail to create passwd and group files if /etc already exists 2015-02-20 08:56:25 +01:00
Nick Withers
c53705c384 doc: Note that rename() is only partially implemented.
Replacing of existing files is not supported. See #2169.
2015-02-19 16:34:25 -05:00
Gedare Bloom
7f1bb40aa1 bfin: do not reset dispatch needed
Closes #2148

Fix suggested in above ticket. On examination, the assembly
appears to be clearing the DISPATCH_NEEDED flag before jumping
to _Thread_Dispatch.
2015-02-19 15:48:47 -05:00
Sebastian Huber
a3316f4706 sptests: Add missing test extension 2015-02-19 11:12:01 +01:00
Sebastian Huber
4e3d9a4d6c score: Make <rtems/score/atomic.h> available
Make <rtems/score/atomic.h> available for all RTEMS configurations.  Use
inline functions instead of macros.  Use ISR disable/enable on
uni-processor configurations to ensure atomicity.

Update #2273.
2015-02-19 10:05:48 +01:00
Sebastian Huber
fd144302a5 IMFS: Silence warning 2015-02-18 17:06:05 +01:00
Sebastian Huber
7fcb71af14 score: Fix _Thread_Start_multitasking() on SMP
Close #2268.
2015-02-17 13:43:57 +01:00
Sebastian Huber
8d6e6eebed score: Fix FP context restore via _Thread_Handler
After a context switch we end up in the second part of
_Thread_Dispatch() or in _Thread_Handler() in case of new threads.  Use
the same function _Thread_Restore_fp() to restore the floating-point
context.  It makes no sense to do this in _Thread_Start_multitasking().
This fixes also a race condition in SMP configurations.

Update #2268.
2015-02-17 13:42:53 +01:00
Sebastian Huber
c34f94f72d score: Add _CPU_SMP_Prepare_start_multitasking()
Update #2268.
2015-02-17 09:41:27 +01:00