More work on making port use newlib's reentry mechanisms

- archContextSwitch stores address of new thread's struct reent in
  ctx_switch_info
- pend_sv_handler uses address in  ctx_switch_info.reent instead of fixed
  offset into atom_tcb
- added header with defines for offsets into struct ctx_switch_info used
  in assembler code. Also added compile time verification for this offsets
This commit is contained in:
Tido Klaassen
2015-09-30 08:51:28 +02:00
parent 0be9a35aeb
commit 792213d66b
6 changed files with 96 additions and 32 deletions

View File

@@ -59,10 +59,7 @@ typedef struct atom_tcb
*/
POINTER sp_save_ptr;
/* Thread's port specific private data. Do not move, some poorly written
* thread switching code (*cough* Cortex-M *cough*) might depend on a
* known offset into the atom_tcb struct
*/
/* Thread's port specific private data. */
THREAD_PORT_PRIV;
/* Thread priority (0-255) */