-
Notifications
You must be signed in to change notification settings - Fork 3k
PSA: TFM import #10829
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
0xc0170
merged 9 commits into
ARMmbed:master
from
urutva:feature_trusted-firmware-m_e7efdc6
Jul 1, 2019
Merged
PSA: TFM import #10829
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
b0fe59d
[trusted-firmware-m]: Updated to e7efdc6
urutva 11bff3f
TF-M patch: General modifications
795e641
TF-M patch: Fix tfm_ns_lock_init issue (TF-M issue #239)
35938a4
TF-M patch: Fix service handles not cleared issue (TF-M issue #230)
910a402
TF-M patch: Fix tfm_psa_call_venner wrong argument type (TF-M issue #…
cb748c5
TF-M patch: Change #if TFM_PSA_API to #ifdef TFM_PSA_API to avoid
urutva 9a51105
TF-M patch: Remove secure_fw/core/tfm_func_api.c which is required only
urutva 6e899b3
TF-M patch/workaround related to (TF-M issue #T240)
urutva 98fa63a
Update commit sha's
urutva File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -177,6 +177,19 @@ struct tfm_thrd_ctx *tfm_thrd_curr_thread(void); | |
*/ | ||
struct tfm_thrd_ctx *tfm_thrd_next_thread(void); | ||
|
||
/* | ||
* Start scheduler for existing threads | ||
* | ||
* Parameters: | ||
* pth - pointer of the caller context collecting thread | ||
* | ||
* Notes : | ||
* This function should be called only ONCE to start the scheduler. | ||
* Caller needs to provide a thread object to collect current context. | ||
* The usage of the collected context is caller defined. | ||
*/ | ||
void tfm_thrd_start_scheduler(struct tfm_thrd_ctx *pth); | ||
|
||
/* | ||
* Activate a scheduling action after exception. | ||
* | ||
|
@@ -201,23 +214,19 @@ void tfm_thrd_context_switch(struct tfm_state_context_ext *ctxb, | |
struct tfm_thrd_ctx *next); | ||
|
||
/* | ||
* Exit current running thread. | ||
* Svcall to exit current running thread. | ||
* | ||
* Notes : | ||
* Remove current thread out of schedulable list. | ||
*/ | ||
void tfm_thrd_do_exit(void); | ||
void tfm_svcall_thrd_exit(void); | ||
|
||
/* | ||
* PendSV specified function. | ||
* | ||
* Parameters : | ||
* ctxb - State context storage pointer | ||
* Exit current running thread for client. | ||
* | ||
* Notes: | ||
* This is a staging API. Scheduler should be called in SPM finally and | ||
* this function will be obsoleted later. | ||
* Must be called in thread mode. | ||
*/ | ||
void tfm_pendsv_do_schedule(struct tfm_state_context_ext *ctxb); | ||
void tfm_thrd_exit(void); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why abbreviate so aggressively? tfm_thread_exit(), anyone? |
||
|
||
#endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In light of this comment should this be marked as deprecated in some way?