fix some register typing

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4080 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2011-11-03 01:58:55 +00:00
parent f84c24373d
commit 29e4049e45
2 changed files with 6 additions and 6 deletions

View File

@ -414,7 +414,7 @@ static inline void cp0_putstatus(irqstate_t status)
static inline uint32_t cp0_getcause(void)
{
register irqstate_t cause;
register uint32_t cause;
__asm__ __volatile__
(
"\t.set push\n"

View File

@ -83,14 +83,14 @@
static inline uint32_t cp0_getintctl(void)
{
register irqstate_t ebase;
register uint32_t intctl;
__asm__ __volatile__
(
"\t.set push\n"
"\t.set noat\n"
"\t mfc0 %0, $12, 1\n" /* Get CP0 IntCtl register */
"\t.set pop\n"
: "=r" (ebase)
: "=r" (intctl)
:
: "memory"
);
@ -112,7 +112,7 @@ static inline uint32_t cp0_getintctl(void)
*
****************************************************************************/
static inline void cp0_putintctl(uint32_t ebase)
static inline void cp0_putintctl(uint32_t intctl)
{
__asm__ __volatile__
(
@ -122,7 +122,7 @@ static inline void cp0_putintctl(uint32_t ebase)
"\tmtc0 %0, $12, 1\n" /* Set the IntCtl to the provided value */
"\t.set pop\n"
:
: "r" (ebase)
: "r" (intctl)
: "memory"
);
}
@ -143,7 +143,7 @@ static inline void cp0_putintctl(uint32_t ebase)
static inline uint32_t cp0_getebase(void)
{
register irqstate_t ebase;
register uint32_t ebase;
__asm__ __volatile__
(
"\t.set push\n"