mirror of
https://github.com/kelvinlawson/atomthreads.git
synced 2026-03-20 02:51:52 +01:00
Add support for architectures with stack alignment requirements in preparation for various 32 bit ports.
NOTE: The atomThreadCreate() and atmoOSInit() APIs have changed to take stack_bottom rather than stack_top and to allow optional stack-checking on a per-thread basis.
This commit is contained in:
@@ -63,8 +63,8 @@ uint32_t test_start (void)
|
||||
|
||||
/* atomThreadCreate: Pass a bad TCB pointer */
|
||||
if (atomThreadCreate (NULL, TEST_THREAD_PRIO, test_thread_func, 0,
|
||||
&test_thread_stack[TEST_THREAD_STACK_SIZE - 1],
|
||||
TEST_THREAD_STACK_SIZE) != ATOM_ERR_PARAM)
|
||||
&test_thread_stack[0],
|
||||
TEST_THREAD_STACK_SIZE, TRUE) != ATOM_ERR_PARAM)
|
||||
{
|
||||
ATOMLOG (_STR("Bad TCB check\n"));
|
||||
failures++;
|
||||
@@ -72,8 +72,8 @@ uint32_t test_start (void)
|
||||
|
||||
/* atomThreadCreate: Pass a bad entry point */
|
||||
if (atomThreadCreate (&tcb1, TEST_THREAD_PRIO, NULL, 0,
|
||||
&test_thread_stack[TEST_THREAD_STACK_SIZE - 1],
|
||||
TEST_THREAD_STACK_SIZE) != ATOM_ERR_PARAM)
|
||||
&test_thread_stack[0],
|
||||
TEST_THREAD_STACK_SIZE, TRUE) != ATOM_ERR_PARAM)
|
||||
{
|
||||
ATOMLOG (_STR("Bad entry check\n"));
|
||||
failures++;
|
||||
@@ -81,7 +81,7 @@ uint32_t test_start (void)
|
||||
|
||||
/* atomThreadCreate: Pass a bad stack pointer */
|
||||
if (atomThreadCreate (&tcb1, TEST_THREAD_PRIO, test_thread_func, 0,
|
||||
NULL, TEST_THREAD_STACK_SIZE) != ATOM_ERR_PARAM)
|
||||
NULL, TEST_THREAD_STACK_SIZE, TRUE) != ATOM_ERR_PARAM)
|
||||
{
|
||||
ATOMLOG (_STR("Bad stack ptr check\n"));
|
||||
failures++;
|
||||
@@ -89,7 +89,7 @@ uint32_t test_start (void)
|
||||
|
||||
/* atomThreadCreate: Pass a bad stack size */
|
||||
if (atomThreadCreate (&tcb1, TEST_THREAD_PRIO, test_thread_func, 0,
|
||||
&test_thread_stack[TEST_THREAD_STACK_SIZE - 1], 0) != ATOM_ERR_PARAM)
|
||||
&test_thread_stack[0], 0, TRUE) != ATOM_ERR_PARAM)
|
||||
{
|
||||
ATOMLOG (_STR("Bad stack size check\n"));
|
||||
failures++;
|
||||
|
||||
Reference in New Issue
Block a user