forked from len0rd/rockbox
New system_init function
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@780 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
082ba5196d
commit
951fe18a40
2 changed files with 14 additions and 0 deletions
|
@ -450,3 +450,16 @@ asm (
|
|||
"_UIE107:\tbsr\t_UIE\n\tmov.l\t@r15+,r4\t\n"
|
||||
"_UIE108:\tbsr\t_UIE\n\tmov.l\t@r15+,r4\t\n"
|
||||
"_UIE109:\tbsr\t_UIE\n\tmov.l\t@r15+,r4");
|
||||
|
||||
void system_init(void)
|
||||
{
|
||||
/* Disable all interrupts */
|
||||
IPRA = 0;
|
||||
IPRB = 0;
|
||||
IPRC = 0;
|
||||
IPRD = 0;
|
||||
IPRE = 0;
|
||||
|
||||
/* NMI level low, falling edge on all interrupts */
|
||||
ICR = 0;
|
||||
}
|
||||
|
|
|
@ -261,5 +261,6 @@ static inline int cas2 (volatile int *pointer1,volatile int *pointer2,int reques
|
|||
}
|
||||
|
||||
extern void system_reboot (void);
|
||||
extern void system_init(void);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue