Commit Graph

31128 Commits

Author SHA1 Message Date
Sebastian Huber
b225aa1fc1 Reject incompatible tool chains
Update #3185.
2017-11-09 13:39:03 +01:00
Sebastian Huber
5f02a57478 score: Change _Timecounter_Time_uptime to int32_t
Move basic timecounter API shared with BSD network stack to
<machine/_timecounter.h>.

Update #3185.
2017-11-09 08:12:12 +01:00
Sebastian Huber
4a14751879 Upgrade to 5.0.0
Tool name will be "rtems5", e.g. arm-rtems5-gcc.

Next release will 5.1.0.  Branch version after release will be 5.1.1.
Next master will be 6.0.0.
2017-11-09 08:12:11 +01:00
Sebastian Huber
64ba1a9606 posix: Change created_with_explicit_scheduler
Remove POSIX_API_Control::created_with_explicit_scheduler.  Add
Thread_Control::was_created_with_inherited_scheduler.  This fixes also
pthread_getattr_np() for Classic tasks.

Update #2514.
2017-11-09 08:12:11 +01:00
Sebastian Huber
7147dc43b8 posix: Remove POSIX_API_Control::schedpolicy
Use the thread CPU budget algorithm to determine the scheduler policy.
This fixes also pthread_getschedparam() for Classic tasks.

Update #2514.
2017-11-09 08:12:11 +01:00
Sebastian Huber
8d0a0aa448 sptests/spconsole01: New test 2017-11-08 13:14:31 +01:00
Sebastian Huber
7078a00b13 bsp/t32mppc: Use fixed exception handlers 2017-11-08 13:14:30 +01:00
Sebastian Huber
fdf0e55cf9 bsp/imx: Add UART baud change
Update #3090.
2017-11-08 08:43:27 +01:00
Sebastian Huber
336fe3b9fd bsp/imx: Better utilize UART transmit FIFO
Update #3090.
2017-11-08 08:43:27 +01:00
Sebastian Huber
791469bd4f termios: Fix canonical mode
In canonical mode, input is made available line by line.  We must stop
the canonical buffer filling upon reception of an end-of-line character.

Close #3218.
2017-11-07 08:31:40 +01:00
Sebastian Huber
1055ff2020 tests: Use normal console for user input tests 2017-11-07 08:31:40 +01:00
Sebastian Huber
32ceb38513 tests: Use <tmacros.h>
Update #3170.
Update #3199.
2017-11-07 08:31:40 +01:00
Sebastian Huber
fb272963a6 score: Use Processor_mask instead of cpu_set_t 2017-11-06 09:06:21 +01:00
Sebastian Huber
0c286e3d7c score: _Chain_Insert_ordered_unprotected()
Change the chain order relation to use a directly specified left hand
side value.  This is similar to _RBTree_Insert_inline() and helps the
compiler to better optimize the code.
2017-11-06 09:06:21 +01:00
Sebastian Huber
bceb9db600 score: Remove superfluous include
Update #3059.
2017-11-06 09:06:21 +01:00
Sebastian Huber
7b00c2fac5 tests: Use <tmacros.h> in all tests
Update #3170.
Update #3199.
2017-11-06 09:06:20 +01:00
Sebastian Huber
d71542c8be fsjffs2gc01: Fix sporadic test failures 2017-11-06 09:06:20 +01:00
Sebastian Huber
c4b8b147dd tests: Use simple console driver
Update #3170.
Update #3199.
2017-11-06 07:26:42 +01:00
Sebastian Huber
ac28f1588d Add simple console driver
Update #3170.
Update #3199.
2017-11-06 07:25:51 +01:00
Sebastian Huber
10827984c2 score: Add _IO_Printf() and _IO_Vprintf()
The previous vprintk() implementation had a questionable licence header,
lacks support for the 'z' and 'j' format specifiers, is not robust
against invalid format specifiers, uses a global variable for output.
Replace it with a stripped down version of the FreeBSD kernel kvprintf()
function.

The new implementation allows a low overhead rtems_snprintf() if
necessary.

Update #3199.
Close #3216.
2017-11-06 07:25:51 +01:00
Sebastian Huber
a54d10d177 smpscheduler02: Avoid sporadic test failures 2017-11-03 12:58:58 +01:00
Sebastian Huber
3e81d52e27 posix: Use far future for very long timeouts
Close #3205.
2017-11-02 14:08:32 +01:00
Sebastian Huber
8c1f4064ad tests: Use printf() instead of fprintf()
Update #3170.
Update #3199.
2017-11-02 14:08:32 +01:00
Sebastian Huber
0d796d6dc7 tests: Delete obsolete TESTS_USE_PRINTF
Update #3170.
Update #3199.
2017-11-02 14:08:32 +01:00
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