Commit 11657db
committed
core: thread_init_threads(): replace dummy thread ctx
When configuring paging, a thread context is needed to keep the VFP
state, but thread context might not have been allocated yet with
CFG_DYN_CONFIG=y so a dummy thread context might be needed until then.
When thread_init_threads() assigns and initializes the real thread
context, update the pointer and count variables using an unpaged
function to make sure that pager code doesn't access the thread context
while it's being replaced. This is needed in later patches with
CFG_DYN_CONFIG=y and CFG_WITH_PAGER=y.
Signed-off-by: Jens Wiklander <[email protected]>1 parent 7017d1c commit 11657db
1 file changed
+14
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
580 | 580 | | |
581 | 581 | | |
582 | 582 | | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
583 | 596 | | |
584 | 597 | | |
585 | 598 | | |
586 | 599 | | |
587 | 600 | | |
588 | 601 | | |
589 | | - | |
590 | | - | |
591 | | - | |
592 | | - | |
| 602 | + | |
593 | 603 | | |
594 | 604 | | |
595 | 605 | | |
| |||
0 commit comments