diff options
| author | Linus Nielsen Feltzing <linus@haxx.se> | 2002-05-29 09:11:04 +0000 |
|---|---|---|
| committer | Linus Nielsen Feltzing <linus@haxx.se> | 2002-05-29 09:11:04 +0000 |
| commit | 951fe18a409fd38858365e2f47eb6f27dce2a834 (patch) | |
| tree | 5979e4d0063d42019774fa299b14c6e51c104e03 | |
| parent | 082ba5196db83b2eb816f787e677daf66df5b72e (diff) | |
| download | rockbox-951fe18a409fd38858365e2f47eb6f27dce2a834.zip rockbox-951fe18a409fd38858365e2f47eb6f27dce2a834.tar.gz rockbox-951fe18a409fd38858365e2f47eb6f27dce2a834.tar.bz2 rockbox-951fe18a409fd38858365e2f47eb6f27dce2a834.tar.xz | |
New system_init function
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@780 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | firmware/system.c | 13 | ||||
| -rw-r--r-- | firmware/system.h | 1 |
2 files changed, 14 insertions, 0 deletions
diff --git a/firmware/system.c b/firmware/system.c index bf112b6..f02bbb8 100644 --- a/firmware/system.c +++ b/firmware/system.c @@ -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; +} diff --git a/firmware/system.h b/firmware/system.h index 7f7305f..2947fdc 100644 --- a/firmware/system.h +++ b/firmware/system.h @@ -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 |