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 /apps/plugins/wavrecord.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 'apps/plugins/wavrecord.c')
-rw-r--r-- | apps/plugins/wavrecord.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/wavrecord.c b/apps/plugins/wavrecord.c index ee557633a4..b509212239 100644 --- a/apps/plugins/wavrecord.c +++ b/apps/plugins/wavrecord.c | |||
@@ -3415,7 +3415,7 @@ void rec_tick(void) | |||
3415 | 3415 | ||
3416 | void rec_tick_enable(bool on) | 3416 | void rec_tick_enable(bool on) |
3417 | { | 3417 | { |
3418 | int oldlevel = set_irq_level(HIGHEST_IRQ_LEVEL); | 3418 | int oldlevel = disable_irq_save(); |
3419 | 3419 | ||
3420 | if(on) | 3420 | if(on) |
3421 | { | 3421 | { |
@@ -3431,7 +3431,7 @@ void rec_tick_enable(bool on) | |||
3431 | IPRB = (IPRB & 0xff0f) | 0x0080; /* Reenable IRQ6 */ | 3431 | IPRB = (IPRB & 0xff0f) | 0x0080; /* Reenable IRQ6 */ |
3432 | } | 3432 | } |
3433 | 3433 | ||
3434 | set_irq_level(oldlevel); | 3434 | restore_irq(oldlevel); |
3435 | } | 3435 | } |
3436 | 3436 | ||
3437 | void hijack_interrupts(bool on) | 3437 | void hijack_interrupts(bool on) |