Compare commits
No commits in common. "89aacc5041ac8e6b4603b460bcef98c85b9c12e4" and "6707923afbc38a08118aed1a432d5681154fde7e" have entirely different histories.
89aacc5041
...
6707923afb
2 changed files with 6 additions and 3 deletions
4
isr.h
4
isr.h
|
|
@ -8,13 +8,13 @@ void init_vic(void);
|
|||
static inline unsigned int cpsr(void)
|
||||
{
|
||||
unsigned int r;
|
||||
__asm__ __volatile__ ("MRS %0, CPSR" : "=r" (r) :: "memory");
|
||||
__asm__ __volatile__ ("MRS %0, CPSR" : "=r" (r));
|
||||
return r;
|
||||
}
|
||||
|
||||
static inline void cpsr_c(unsigned int r)
|
||||
{
|
||||
__asm__ __volatile__ ("MSR CPSR_c, %0" :: "r" (r) : "memory");
|
||||
__asm__ __volatile__ ("MSR CPSR_c, %0" :: "r" (r));
|
||||
}
|
||||
|
||||
static inline unsigned int disable_irq(unsigned int flag)
|
||||
|
|
|
|||
5
parser.c
5
parser.c
|
|
@ -62,7 +62,10 @@ error_msg_t expect_char(struct command *cmd, char what)
|
|||
{
|
||||
if (parse_char(cmd, what))
|
||||
return 0;
|
||||
return error_printf(709, "%c expected\n", what);
|
||||
static char mes[] = ". expected\n";
|
||||
static ERRORMESSAGE(error, 709, mes);
|
||||
mes[0] = what;
|
||||
return &error;
|
||||
}
|
||||
|
||||
const struct keywords *parse_keyword(struct command *cmd, const struct keywords *table)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue