-
Notifications
You must be signed in to change notification settings - Fork 70
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
Add msplim_ns for box 0 #520
Conversation
please review @danny4478 @alzix @romkuz01 |
api/src/uvisor-input.S
Outdated
@@ -114,6 +114,9 @@ uvisor_config: | |||
/* Debug driver pointer */ | |||
.long __uvisor_debug_driver | |||
|
|||
/* Stack limit for MSPNS_LIM */ |
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.
Change MSPNS_LIM to MSPLIM_NS in the comment.
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.
fix
core/system/inc/linker.h
Outdated
@@ -121,6 +121,9 @@ typedef struct { | |||
UvisorLibHooks const * const lib_hooks; | |||
|
|||
TUvisorDebugDriver const * const debug_driver; | |||
|
|||
/* Stack limit for MSPNS_LIM */ |
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.
Change MSPNS_LIM to MSPLIM_NS in the comment.
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.
fix
api/src/uvisor-input.S
Outdated
@@ -114,6 +114,9 @@ uvisor_config: | |||
/* Debug driver pointer */ | |||
.long __uvisor_debug_driver | |||
|
|||
/* Stack limit for MSPLIM_NS */ | |||
.long __uvisor_stack_limit |
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.
IMHO the variable name is misleading as it holds not the uvisor stack limit but the public box stack limit.
Am i missing something?
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.
fixed
core/system/inc/linker.h
Outdated
@@ -121,6 +121,9 @@ typedef struct { | |||
UvisorLibHooks const * const lib_hooks; | |||
|
|||
TUvisorDebugDriver const * const debug_driver; | |||
|
|||
/* Stack limit for MSPLIM_NS */ | |||
uint32_t * stack_limit; |
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.
- same here what stack limit is it used for?
- Additional question - what will we do with this new field on ARMv7-M platforms?
- Please note the naming conventions here - members are named exactly as in the
uvisor-input.S
except__uvisor_
prefix
api/src/uvisor-input.S
Outdated
@@ -114,6 +114,9 @@ uvisor_config: | |||
/* Debug driver pointer */ | |||
.long __uvisor_debug_driver | |||
|
|||
/* Stack limit for MSPLIM_NS */ | |||
.long __uvisor_stack_limit | |||
|
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.
i see you are missing the assignment here as you have assigned the value to the __uvisor_stack_limit
from the mbed-os linker script.
Please consider assigning StackLimit symbol directly without intermediate variable and without modifying mbed-os sources.
@Patater - please approve |
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.
Please rebase instead of "Merge branch 'master' into msplim"
api/src/uvisor-input.S
Outdated
@@ -114,6 +114,9 @@ uvisor_config: | |||
/* Debug driver pointer */ | |||
.long __uvisor_debug_driver | |||
|
|||
/* Stack limit for publix box MSPLIM_NS, accessed by public_box_stack_limit */ |
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.
- publix
+ public
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.
fixed
api/src/uvisor-input.S
Outdated
@@ -134,6 +137,9 @@ __uvisor_debug_driver: | |||
.long 0 | |||
.long 0 | |||
|
|||
__uvisor_public_box_stack_limit: | |||
.long __StackLimit |
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.
Why do we need the public box stack limit twice? Why not just put __StackLimit
where __uvisor_public_box_stack_limit
is instead?
3be273a
to
40e06f7
Compare
/morph uvisor-test |
requies changes from PR ARMmbed/mbed-os#5321
and changes from #486
and #496