diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2008-03-26 01:50:41 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2008-03-26 01:50:41 +0000 |
commit | af395f4db6ad7b83f9d9afefb1c0ceeedd140a45 (patch) | |
tree | b631289b4a3b28d3c65b10d272d50298f377c69f /bootloader/iriver_h300.c | |
parent | 74d678fdbcbc427c057e7682ba0a0566e49a8b97 (diff) | |
download | rockbox-af395f4db6ad7b83f9d9afefb1c0ceeedd140a45.tar.gz rockbox-af395f4db6ad7b83f9d9afefb1c0ceeedd140a45.zip |
Do core interrupt masking in a less general fashion and save some instructions to decrease size and speed things up a little bit. Small fix to a few places where interrupts would get enabled again where they shouldn't have been (context switching calls when disabled).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16811 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'bootloader/iriver_h300.c')
-rw-r--r-- | bootloader/iriver_h300.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bootloader/iriver_h300.c b/bootloader/iriver_h300.c index 1840966aa1..3349be4c2b 100644 --- a/bootloader/iriver_h300.c +++ b/bootloader/iriver_h300.c @@ -175,10 +175,10 @@ void main(void) } /* get rid of a nasty humming sound during boot */ - mask = set_irq_level(HIGHEST_IRQ_LEVEL); + mask = disable_irq_save(); pcf50606_write(0x3b, 0x00); /* GPOOD2 high Z */ pcf50606_write(0x3b, 0x07); /* GPOOD2 low */ - set_irq_level(mask); + restore_irq(mask); /* Start with the main backlight OFF. */ _backlight_init(); @@ -192,7 +192,7 @@ void main(void) /* Set up waitstates for the peripherals */ set_cpu_frequency(0); /* PLL off */ coldfire_set_pllcr_audio_bits(DEFAULT_PLLCR_AUDIO_BITS); - set_irq_level(0); + enable_irq(); isp1362_init(); |