Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NuttX RTOS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
f4grx
NuttX RTOS
Commits
f14ff4c4
Commit
f14ff4c4
authored
8 years ago
by
Gregory Nutt
Browse files
Options
Downloads
Patches
Plain Diff
A few naming changes to get code from last PR to conform to NuttX naming standard
parent
14a8bbbf
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
configs/nucleo-144/src/stm32_bbsram.c
+13
-13
13 additions, 13 deletions
configs/nucleo-144/src/stm32_bbsram.c
with
13 additions
and
13 deletions
configs/nucleo-144/src/stm32_bbsram.c
+
13
−
13
View file @
f14ff4c4
...
...
@@ -199,11 +199,11 @@ typedef struct
typedef
enum
{
eRegsPresent
=
0x01
,
eUserStackPresent
=
0x02
,
eIntStackPresent
=
0x04
,
eInvalidUserStackPtr
=
0x20
,
eInvalidIntStackPrt
=
0x40
,
REGS_PRESENT
=
0x01
,
USERSTACK_PRESENT
=
0x02
,
INTSTACK_PRESENT
=
0x04
,
INVALID_USERSTACK_PTR
=
0x20
,
INVALID_INTSTACK_PTR
=
0x40
,
}
fault_flags_t
;
typedef
struct
...
...
@@ -240,7 +240,7 @@ typedef struct
* Private Data
************************************************************************************/
static
uint8_t
sdata
[
STM32F7_BBSRAM_SIZE
];
static
uint8_t
g_
sdata
[
STM32F7_BBSRAM_SIZE
];
/************************************************************************************
* Private Functions
...
...
@@ -341,7 +341,7 @@ int stm32_bbsram_int(void)
void
board_crashdump
(
uintptr_t
currentsp
,
FAR
void
*
tcb
,
FAR
const
uint8_t
*
filename
,
int
lineno
)
{
fullcontext_t
*
pdump
=
(
fullcontext_t
*
)
&
sdata
;
fullcontext_t
*
pdump
=
(
fullcontext_t
*
)
&
g_
sdata
;
FAR
struct
tcb_s
*
rtcb
;
int
rv
;
...
...
@@ -395,7 +395,7 @@ void board_crashdump(uintptr_t currentsp, FAR void *tcb,
if
(
CURRENT_REGS
)
{
pdump
->
info
.
stacks
.
interrupt
.
sp
=
currentsp
;
pdump
->
info
.
flags
|=
(
eRegsPresent
|
eUserStackPresent
|
eIntStackPresent
);
pdump
->
info
.
flags
|=
(
REGS_PRESENT
|
USERSTACK_PRESENT
|
INTSTACK_PRESENT
);
memcpy
(
pdump
->
info
.
regs
,
(
void
*
)
CURRENT_REGS
,
sizeof
(
pdump
->
info
.
regs
));
pdump
->
info
.
stacks
.
user
.
sp
=
pdump
->
info
.
regs
[
REG_R13
];
}
...
...
@@ -403,7 +403,7 @@ void board_crashdump(uintptr_t currentsp, FAR void *tcb,
{
/* users context */
pdump
->
info
.
flags
|=
eUserStackPresent
;
pdump
->
info
.
flags
|=
USERSTACK_PRESENT
;
pdump
->
info
.
stacks
.
user
.
sp
=
currentsp
;
}
...
...
@@ -428,7 +428,7 @@ void board_crashdump(uintptr_t currentsp, FAR void *tcb,
* about the interrupt stack pointer
*/
if
((
pdump
->
info
.
flags
&
eIntStackPresent
)
!=
0
)
if
((
pdump
->
info
.
flags
&
INTSTACK_PRESENT
)
!=
0
)
{
stack_word_t
*
ps
=
(
stack_word_t
*
)
pdump
->
info
.
stacks
.
interrupt
.
sp
;
copy_reverse
(
pdump
->
istack
,
&
ps
[
arraySize
(
pdump
->
istack
)
/
2
],
arraySize
(
pdump
->
istack
));
...
...
@@ -440,7 +440,7 @@ void board_crashdump(uintptr_t currentsp, FAR void *tcb,
pdump
->
info
.
stacks
.
interrupt
.
sp
>
pdump
->
info
.
stacks
.
interrupt
.
top
-
pdump
->
info
.
stacks
.
interrupt
.
size
))
{
pdump
->
info
.
flags
|=
eInvalidIntStackPrt
;
pdump
->
info
.
flags
|=
INVALID_INTSTACK_PTR
;
}
#endif
...
...
@@ -448,7 +448,7 @@ void board_crashdump(uintptr_t currentsp, FAR void *tcb,
* about the user stack pointer
*/
if
((
pdump
->
info
.
flags
&
eUserStackPresent
)
!=
0
)
if
((
pdump
->
info
.
flags
&
USERSTACK_PRESENT
)
!=
0
)
{
stack_word_t
*
ps
=
(
stack_word_t
*
)
pdump
->
info
.
stacks
.
user
.
sp
;
copy_reverse
(
pdump
->
ustack
,
&
ps
[
arraySize
(
pdump
->
ustack
)
/
2
],
...
...
@@ -461,7 +461,7 @@ void board_crashdump(uintptr_t currentsp, FAR void *tcb,
pdump
->
info
.
stacks
.
user
.
sp
>
pdump
->
info
.
stacks
.
user
.
top
-
pdump
->
info
.
stacks
.
user
.
size
))
{
pdump
->
info
.
flags
|=
eInvalidUserStackPtr
;
pdump
->
info
.
flags
|=
INVALID_USERSTACK_PTR
;
}
rv
=
stm32_bbsram_savepanic
(
HARDFAULT_FILENO
,
(
uint8_t
*
)
pdump
,
sizeof
(
fullcontext_t
));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment