Skip to content
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

Merged
merged 1 commit into from
Oct 22, 2017
Merged

Add msplim_ns for box 0 #520

merged 1 commit into from
Oct 22, 2017

Conversation

theamirocohen
Copy link
Contributor

requies changes from PR ARMmbed/mbed-os#5321
and changes from #486
and #496

@theamirocohen
Copy link
Contributor Author

please review @danny4478 @alzix @romkuz01

@@ -114,6 +114,9 @@ uvisor_config:
/* Debug driver pointer */
.long __uvisor_debug_driver

/* Stack limit for MSPNS_LIM */
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix

@@ -121,6 +121,9 @@ typedef struct {
UvisorLibHooks const * const lib_hooks;

TUvisorDebugDriver const * const debug_driver;

/* Stack limit for MSPNS_LIM */
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix

@@ -114,6 +114,9 @@ uvisor_config:
/* Debug driver pointer */
.long __uvisor_debug_driver

/* Stack limit for MSPLIM_NS */
.long __uvisor_stack_limit
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@@ -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;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. same here what stack limit is it used for?
  2. Additional question - what will we do with this new field on ARMv7-M platforms?
  3. Please note the naming conventions here - members are named exactly as in the uvisor-input.S except __uvisor_ prefix

@@ -114,6 +114,9 @@ uvisor_config:
/* Debug driver pointer */
.long __uvisor_debug_driver

/* Stack limit for MSPLIM_NS */
.long __uvisor_stack_limit

Copy link
Contributor

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.

alzix
alzix previously approved these changes Oct 16, 2017
@alzix
Copy link
Contributor

alzix commented Oct 16, 2017

@Patater - please approve

@alzix alzix requested a review from Patater October 16, 2017 19:30
@alzix alzix added run-CI and removed run-CI labels Oct 16, 2017
Copy link
Contributor

@Patater Patater left a 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"

@@ -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 */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

- publix
+ public

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@@ -134,6 +137,9 @@ __uvisor_debug_driver:
.long 0
.long 0

__uvisor_public_box_stack_limit:
.long __StackLimit
Copy link
Contributor

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?

@alzix
Copy link
Contributor

alzix commented Oct 22, 2017

/morph uvisor-test

@alzix alzix merged commit 2afc36f into ARMmbed:master Oct 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants