Commit Graph

31304 Commits

Author SHA1 Message Date
Sebastian Huber
4438c4d826 bsp/imx: More robust and faster bsp_reset()
Update #3090.
2017-11-02 13:44:01 +01:00
Sebastian Huber
4b055e23e9 bsp/imx: Drain console before reset
Update #3090.
2017-11-02 11:24:00 +01:00
Sebastian Huber
c52a9682c1 bsp/imx: Implement bsp_reset()
Update #3090.
2017-11-02 11:23:59 +01:00
Sebastian Huber
81fd79daf0 smppsxaffinity02: Fix thread attribute usage
The pthread_getattr_np() returns now the stack address and size.  Do not
use this stack for the new threads.

Update #2514.
Update #3145.
Update #3168.
2017-11-02 11:23:17 +01:00
Hesham Almatary
8fa827cc83 bsp: Make riscv_generic work for both riscv32 and riscv64 - v2
Update #3109
2017-11-01 10:11:20 +11:00
Hesham Almatary
11ff3a9e72 cpukit: RISC-V - make riscv32 code work for riscv64 - v2
* Use #ifdefs for 32/64 bit code
* Use unsigned long which is 32-bit on riscv32 and 64-bit on riscv64 (register size)
* Move the code to a new shared riscv folder to be shared between riscv32 and riscv64
* Rename RTEMS_CPU extracted from command line to shared riscv target s/riscv*/riscv

Update #3109
2017-11-01 10:10:27 +11:00
Chris Johns
2126438a07 testsuite: Add bspIo for a local printk.
Update #3170.
Update #3199.
2017-10-30 16:30:11 +11:00
Sebastian Huber
9db3cc21e9 score: Fix non-SMP build 2017-10-29 07:38:37 +01:00
Sebastian Huber
af4355459e tests: Remove TEST_INIT
The TEST_EXTERN is a used only by the system.h style tests and they use
CONFIGURE_INIT appropriately.

Update #3170.
Update #3199.
2017-10-28 13:33:56 +02:00
Sebastian Huber
acc9d06468 tests: Remove obsolete TESTS_USE_PRINTK
Update #3170.
Update #3199.
2017-10-28 13:33:55 +02:00
Sebastian Huber
7e1029158e tests: Use rtems_test_printer in general
Update #3170.
Update #3199.
2017-10-28 13:33:55 +02:00
Sebastian Huber
46ddc3c5da tests: Use rtems_print_printer_fprintf_putc()
Use rtems_print_printer_fprintf_putc() instead of
rtems_print_printer_printf() to output via rtems_putc().

Update #3170.
Update #3199.
2017-10-28 13:33:55 +02:00
Sebastian Huber
73d892d8a8 tests: Use rtems_test_printer
Update #3170.
Update #3199.
2017-10-28 13:33:55 +02:00
Sebastian Huber
7bec7f2715 rtems: Add rtems_print_printer_fprintf_putc()
Update #3170.
Update #3199.
2017-10-28 13:33:55 +02:00
Sebastian Huber
f703e7f5c7 tests: Move rtems_test_printer definition
Statically initialize it to use printk().

Update #3170.
Update #3199.
2017-10-28 13:33:55 +02:00
Sebastian Huber
cf614eca60 riscv32: Add missing preinstall.am
Update #3109.
2017-10-28 13:33:55 +02:00
Sebastian Huber
0719fc6ec7 sptests/spscheduler01: Test POSIX set/get affinity 2017-10-28 13:13:09 +02:00
Sebastian Huber
8744498752 score: Fix _Scheduler_Set_affinity() 2017-10-28 13:10:47 +02:00
Sebastian Huber
1d572eba97 posix: Fix pthread_create() with user stack
In case the user provides a stack with address and size, then do not
alter the stack size.

Close #3211.
2017-10-28 13:09:43 +02:00
Sebastian Huber
4edcede7e9 score: Simplify SMP get lowest scheduled
There is no need to pass in the order relation since the scheduled
threads reside on an already ordered chain.  The caller will decide what
to do with the lowest scheduled thread.
2017-10-28 13:08:53 +02:00
Hesham Almatary
6d85e05144 bsp: Add new riscv_generic bsp v3
* Only runs/tested on simulator/spike.
* Ticker, hello, capture work proprely
* Tested via RTEMS Tester, Passed: 525/565 (92%)

Update #3109
2017-10-28 18:41:42 +11:00
Hesham Almatary
660db8c86f cpukit: Add basic riscv32 architecture port v3
Limitations:
* NO FPU support [TODO]

Update #3109
2017-10-28 18:28:21 +11:00
Hesham Almatary
f47dc8d58b cpukit: librpc - add riscv* to xdr_float.c v3 2017-10-28 18:27:52 +11:00
Hesham Almatary
a5273abe3f Add riscv32 to autotools files v3 2017-10-28 18:27:42 +11:00
Sebastian Huber
0f1fa19882 smptests: Fix format warnings 2017-10-26 13:23:10 +02:00
Sebastian Huber
1510ce4959 psxtests/psxstat: Fix format warnings 2017-10-26 13:23:10 +02:00
Sebastian Huber
b31ccb5563 psxtests/psxclockrealtime01: Fix warnings
Update #3182.
2017-10-26 13:23:10 +02:00
Sebastian Huber
8388ceea05 score: Delete _Scheduler_Thread_set_priority() 2017-10-26 09:07:40 +02:00
Daniel Hellstrom
cfc3604100 leon,gr740: start ASR22:23 up-counter on boot by writing ASR22
According to data sheet bit 31 in ASR22 must be written with a zero
to start the up-counter. GRMON starts the up-counter for us. This
patch is important when running in "flight" from ROM without GRMON.
2017-10-25 12:52:33 +02:00
Sebastian Huber
e3ef14b1a6 smptests: Remove duplicate Makefile targets
Close #3187.
2017-10-25 07:59:20 +02:00
Sebastian Huber
0ddffb766c confdefs: CONFIGURE_MICROSECONDS_PER_TICK
Reject non-positive CONFIGURE_MICROSECONDS_PER_TICK values.
2017-10-25 07:26:41 +02:00
Sebastian Huber
34799c3bc1 rtems: rtems_clock_get_ticks_per_second()
Add macro implementation for rtems_clock_get_ticks_per_second() for
C/C++ to avoid the function call overhead.  A
rtems_clock_get_ticks_per_second() is still provided for language
bindings (e.g. Ada).
2017-10-25 07:26:37 +02:00
Chris Johns
4c701106fa testsuite: Fix build
Updates #3170.
2017-10-25 08:32:53 +11:00
Sebastian Huber
c310589474 score: Move thread queue timeout handling
Update #3117.
Update #3182.
2017-10-24 10:19:05 +02:00
Sebastian Huber
1666ffe535 score: Rename function threadq support function
Rename _Thread_queue_Context_set_do_nothing_enqueue_callout() into
_Thread_queue_Context_set_enqueue_do_nothing_extra().  More
_Thread_queue_Context_set_enqueue_*() functions will follow.

Update #3117.
Update #3182.
2017-10-24 09:37:28 +02:00
Sebastian Huber
6de1f92121 score: Add _Thread_Continue()
Update #3117.
Update #3182.
2017-10-24 09:37:28 +02:00
Sebastian Huber
5747962909 score: _Watchdog_Per_CPU_lazy_insert_monotonic()
Update #3117.
Update #3182.
2017-10-24 09:37:28 +02:00
Sebastian Huber
b13ec80476 score: Add _Watchdog_Monotonic_from_timespec()
Update #3117.
Update #3182.
2017-10-24 09:37:28 +02:00
Sebastian Huber
cea5ff7001 score: Add _Watchdog_Nanoseconds_per_tick
Move it from the configuration to a separate variable.

Update #3117.
Update #3182.
2017-10-24 09:37:28 +02:00
Sebastian Huber
7ed377bc69 score: _Watchdog_Is_far_future_monotonic_timespec
Update #3117.
Update #3182.
2017-10-24 09:37:28 +02:00
Sebastian Huber
d16d07fbb8 score: Add _Watchdog_Is_valid_interval_timespec()
Update #3117.
Update #3182.
2017-10-24 09:37:27 +02:00
Sebastian Huber
adaf5c232e score: _Watchdog_Is_far_future_realtime_timespec()
Update #3117.
Update #3182.
2017-10-24 09:37:27 +02:00
Sebastian Huber
ecef369875 score: Rename _Watchdog_Ticks_from_*()
Rename _Watchdog_Ticks_from_*() to _Watchdog_Realtime_from_*().

This highlights that these routines are used for the CLOCK_REALTIME
watchdogs (in contrast to CLOCK_MONOTONIC).

Update #3117.
Update #3182.
2017-10-24 09:37:27 +02:00
Sebastian Huber
381ef5c833 confdefs: Warn about problematic ticks per second
A non-integer clock ticks per second value may lead to inaccurate time
format conversions.

Update #3117.
Update #3182.
2017-10-24 09:37:27 +02:00
Sebastian Huber
e0dc6efcf0 rtems: Simplify RTEMS_MILLISECONDS_TO_MICROSECONDS
Remove the cast so that it can be used in C pre-processor directives.

Update #3117.
Update #3182.
2017-10-24 09:37:27 +02:00
Sebastian Huber
27cfe7c86b score: Add _Watchdog_Ticks_per_second
This value is frequently used.  Avoid the function call overhead and the
integer division at run-time.

Update #3117.
Update #3182.
2017-10-24 09:37:22 +02:00
Sebastian Huber
028786263f score: Add _Thread_Add_timeout_ticks()
Replace _Thread_Timer_insert_monotonic() with
_Thread_Add_timeout_ticks().

Update #3117.
Update #3182.
2017-10-24 09:29:59 +02:00
Sebastian Huber
d85c94c0d2 psxclockrealtime01: New test
Update #3182.
2017-10-24 09:29:59 +02:00
Sebastian Huber
a0d0910765 posix: Do not touch msg priority in case of error 2017-10-24 09:29:59 +02:00
Sebastian Huber
0e1ad7fa58 tmtests/tmfine01: Reduce test context size
Reduce test context size in non-SMP configurations.

Close #3200.
2017-10-24 09:27:06 +02:00