Commit Graph

25 Commits (5e5e1568bebdad30fa695a42f45922ddb007dad0)

Author SHA1 Message Date
Sam Grove 27c6721d23 Merge pull request #69 from c1728p9/update_rtos_init_sequence
Update rtos init sequence
2016-05-05 13:53:15 -05:00
Martin Kojtal e01bcdc95a ARMCC ulib - initalize RTOS before the standard library C++ init
Initialize the RTOS before initializing the standard library.  This
allows C++ constructors to be called in a well defined thread context.
2016-04-29 15:45:06 -05:00
Russ Butler 02ba7ea857 IAR - Initialize RTOS before standard library
Initialize the RTOS before initializing the standard library.  This
allows C++ constructors to be called in a well defined thread context.
2016-04-29 15:45:05 -05:00
Russ Butler fa8dc642ba GCC - Initialize RTOS before standard library
Initialize the RTOS before initializing the standard library.  This
allows C++ constructors to be called in a well defined thread context.
2016-04-29 15:45:04 -05:00
Russ Butler 307e2a897e ARMCC - Initialize RTOS before standard library
Initialize the RTOS before initializing the standard library.  This
allows C++ constructors to be called in a well defined thread context.
2016-04-29 15:45:03 -05:00
Russ Butler fcea510163 Remove dead CodeSourcery init code
The CodeSourcery compiler is not longer supported.  This patch removes
the CodeSourcery init code in RTX_CM_lib.h.
2016-04-29 15:45:01 -05:00
Anna Bridge 3a59a07dcc Add a c based re-entrant critical section API
This includes a generic critical section implementation, and nrf51
platforms specific implementation.

nrf51- this implementation will use sd_nvic_critical_region_enter if the
softdevice is enabled, otherwise it will use __disable_irq().
This implementation also allow a user to start a critical section while
interrupts are already disabled.
2016-04-29 09:40:52 -05:00
Russ Butler ac454782da RTX: Support stacks larger than 64k
Cherry pick commit d587474778 -
"RTX: Support stacks larger than 64k"

This allows the latest version of the RTOS to run mbed client over
ethernet without crashing.
2016-04-14 16:56:34 -05:00
Martin Kojtal a573214eff RTX - fix missing header guards for Cortex-M4 (GCC ARM)
The HAL CM4 is valid only for FPU present. These guards were added
to mbed SDK, as there are targets Cortex-M4.
2016-04-14 21:47:19 +01:00
Martin Kojtal 3bffe3d0f5 RTOS - update for RTX v4.79 for Cortex-M
Thread - stack methods are not available for now, as tcb pointer was removed from
internal structure. To obtain it, we could get it from the kernel, but this should be
reconsidered. Either RTOS should provide it, or these methods will become deprecated.
2016-04-14 21:47:14 +01:00
Martin Kojtal 0c4a1674fe RTX - update to v4.79 for Cortex-M
Changes to the original kernel:

Cortex-M requires to define __CMSIS_OS_RTX, and __MBED_CMSIS_RTOS_CM. The macro __MBED_CMSIS_RTOS_CM
is mbed specific macro, to track changes to the kernel. This should keep us aware what has changed. For instance,
one breaking change was thread adding instances variable, which were not in mbed. This can be find as
it's protected via __MBED_CMSIS_RTOS_CM ifdef.

```
// added for mbed compatibility
// original RTX code
```

Startup for toolchains - mbed defines own stack pointer (set_main_stack()), therefore it should be called in the startup.
IAR added low level init calls and dynamic intialization to the IAR startup. All defined in RTX_CM_lib.h.

The timer thread has task id 0x01, main task 0x02. There are exception for main task not to check for
overflows. This is mbed specific, was reapplied from mbed code base.

IAR fixed SVC calls, this fix had to be reapplied (repo mbed PR 736 for more information).
2016-04-14 21:47:12 +01:00
Bogdan Marinescu 5828ebdb90 Merge pull request #26 from c1728p9/mirror_changes
Mirror changes
2016-04-11 12:55:39 +03:00
Bogdan Marinescu 6656fbf9e1 Merge pull request #31 from 0xc0170/rtos_tests
Rtos tests
2016-04-11 12:11:13 +03:00
Russ Butler f23d6ce673 Add mirrored repos
Check in the mirrored repos
2016-04-10 23:37:22 -05:00
Martin Kojtal 477d9579ec mbed-rtos tests update to greentea client 2016-04-07 18:19:32 +01:00
Martin Kojtal 4b1a7a3f21 mbed-rtos tests move to rtos/TESTS/mbed-rtos folder 2016-04-07 18:17:50 +01:00
Yogesh Pande 34e24f7fb2 Revert "Merge pull request #1 from 0xc0170/dev_update_rtos"
This reverts commit 4ae6b059e0, reversing
changes made to 1ee1150924.
2016-04-07 19:05:24 +03:00
Bogdan Marinescu 4ac9644682 Merge pull request #25 from sg-/error-compiler-patch
update reference to uvisor-mbed-lib for extern patch
2016-04-07 16:52:15 +01:00
sg- 1dea6e8a34 update reference to uvisor-mbed-lib for extern patch 2016-04-07 10:41:26 -05:00
Brian Daniels 05777c28c8 Updating mbedtls 2016-04-07 11:53:41 +01:00
Milosch Meriac 6893401a05 added latest uvisor-mbed-lib 2016-04-07 00:57:08 +01:00
Martin Kojtal dd49382061 RTOS - update for RTX v4.79 for Cortex-M
Thread - stack methods are not available for now, as tcb pointer was removed from
internal structure. To obtain it, we could get it from the kernel, but this should be
reconsidered. Either RTOS should provide it, or these methods will become deprecated.
2016-04-06 17:41:08 +01:00
Martin Kojtal e422824ea1 RTX - update to v4.79 for Cortex-M
Changes to the original kernel:

Cortex-M requires to define __CMSIS_OS_RTX, and __MBED_CMSIS_RTOS_CM. The macro __MBED_CMSIS_RTOS_CM
is mbed specific macro, to track changes to the kernel. This should keep us aware what has changed. For instance,
one breaking change was thread adding instances variable, which were not in mbed. This can be find as
it's protected via __MBED_CMSIS_RTOS_CM ifdef.

```
// added for mbed compatibility
// original RTX code
```

Startup for toolchains - mbed defines own stack pointer (set_main_stack()), therefore it should be called in the startup.
IAR added low level init calls and dynamic intialization to the IAR startup. All defined in RTX_CM_lib.h.

The timer thread has task id 0x01, main task 0x02. There are exception for main task not to check for
overflows. This is mbed specific, was reapplied from mbed code base.

IAR fixed SVC calls, this fix had to be reapplied (repo mbed PR 736 for more information).
2016-04-06 15:14:30 +01:00
Bogdan Marinescu c786800234 Added reference to mbedtls 2016-04-05 16:41:13 +01:00
Bogdan Marinescu db76c7fc37 Preparing new layout - moved rtos in core/mbed-rtos 2016-04-05 16:26:11 +01:00