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
e709b43f
Commit
e709b43f
authored
12 years ago
by
Gregory Nutt
Browse files
Options
Downloads
Patches
Plain Diff
Addition cleanup after last switch from BASEPRI to PRIMASK for Cortex-M0
parent
5ec812ff
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
arch/arm/src/armv6-m/up_hardfault.c
+1
-6
1 addition, 6 deletions
arch/arm/src/armv6-m/up_hardfault.c
arch/arm/src/kl/kl_irq.c
+0
-6
0 additions, 6 deletions
arch/arm/src/kl/kl_irq.c
arch/arm/src/nuc1xx/nuc_irq.c
+0
-6
0 additions, 6 deletions
arch/arm/src/nuc1xx/nuc_irq.c
with
1 addition
and
18 deletions
arch/arm/src/armv6-m/up_hardfault.c
+
1
−
6
View file @
e709b43f
...
...
@@ -90,18 +90,14 @@
int
up_hardfault
(
int
irq
,
FAR
void
*
context
)
{
#if defined(CONFIG_DEBUG_HARDFAULT) || !defined(CONFIG_ARMV7M_USEBASEPRI)
uint32_t
*
regs
=
(
uint32_t
*
)
context
;
#endif
/* Get the value of the program counter where the fault occurred */
#ifndef CONFIG_ARMV7M_USEBASEPRI
uint16_t
*
pc
=
(
uint16_t
*
)
regs
[
REG_PC
]
-
1
;
/* Check if the pc lies in known FLASH memory.
* REVISIT: What if the PC lies in "unknown" external memory? Best
* use the BASEPRI register if you have external memory.
* REVISIT: What if the PC lies in "unknown" external memory?
*/
#ifdef CONFIG_NUTTX_KERNEL
...
...
@@ -135,7 +131,6 @@ int up_hardfault(int irq, FAR void *context)
return
up_svcall
(
irq
,
context
);
}
}
#endif
#if defined(CONFIG_DEBUG_HARDFAULT)
/* Dump some hard fault info */
...
...
This diff is collapsed.
Click to expand it.
arch/arm/src/kl/kl_irq.c
+
0
−
6
View file @
e709b43f
...
...
@@ -230,12 +230,6 @@ void up_irqinitialize(void)
irq_attach
(
KL_IRQ_SVCALL
,
up_svcall
);
irq_attach
(
KL_IRQ_HARDFAULT
,
up_hardfault
);
/* Set the priority of the SVCall interrupt */
#ifdef CONFIG_ARCH_IRQPRIO
/* up_prioritize_irq(KL_IRQ_PENDSV, NVIC_SYSH_PRIORITY_MIN); */
#endif
/* Attach all other processor exceptions (except reset and sys tick) */
#ifdef CONFIG_DEBUG
...
...
This diff is collapsed.
Click to expand it.
arch/arm/src/nuc1xx/nuc_irq.c
+
0
−
6
View file @
e709b43f
...
...
@@ -230,12 +230,6 @@ void up_irqinitialize(void)
irq_attach
(
NUC_IRQ_SVCALL
,
up_svcall
);
irq_attach
(
NUC_IRQ_HARDFAULT
,
up_hardfault
);
/* Set the priority of the SVCall interrupt */
#ifdef CONFIG_ARCH_IRQPRIO
/* up_prioritize_irq(NUC_IRQ_PENDSV, NVIC_SYSH_PRIORITY_MIN); */
#endif
/* Attach all other processor exceptions (except reset and sys tick) */
#ifdef CONFIG_DEBUG
...
...
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