Remove unused function setipsr. Cortex-M IPSR register is not writable

This commit is contained in:
Gregory Nutt 2015-09-23 08:38:32 -06:00
parent a1cbb7d8fb
commit cbdafb96d5
2 changed files with 0 additions and 22 deletions

View File

@ -311,17 +311,6 @@ static inline uint32_t getipsr(void)
return ipsr; return ipsr;
} }
static inline void setipsr(uint32_t ipsr) inline_function;
static inline void setipsr(uint32_t ipsr)
{
__asm__ __volatile__
(
"\tmsr ipsr, %0\n"
:
: "r" (ipsr)
: "memory");
}
/* Get/set CONTROL */ /* Get/set CONTROL */
static inline uint32_t getcontrol(void) inline_function; static inline uint32_t getcontrol(void) inline_function;

View File

@ -327,17 +327,6 @@ static inline uint32_t getipsr(void)
return ipsr; return ipsr;
} }
static inline void setipsr(uint32_t ipsr) inline_function;
static inline void setipsr(uint32_t ipsr)
{
__asm__ __volatile__
(
"\tmsr ipsr, %0\n"
:
: "r" (ipsr)
: "memory");
}
/* Get/set CONTROL */ /* Get/set CONTROL */
static inline uint32_t getcontrol(void) inline_function; static inline uint32_t getcontrol(void) inline_function;