diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-09-12 15:16:00 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-09-12 15:16:00 +0000 |
commit | bd51a636de805e88028a08791b4b4dff91cf4d71 (patch) | |
tree | 7065207d8702cee0ecdd0e8982cce95e25cb801c /c/src/lib/libbsp/i386/pc386/console/vt.c | |
parent | 2007-09-12 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-bd51a636de805e88028a08791b4b4dff91cf4d71.tar.bz2 |
2007-09-12 Joel Sherrill <joel.sherrill@OARcorp.com>
PR 1257/bsps
* console/inch.c, console/keyboard.c, console/pc_keyb.c, console/vt.c:
Code outside of cpukit should use the public API for
rtems_interrupt_disable/rtems_interrupt_enable. By bypassing the
public API and directly accessing _CPU_ISR_Disable and
_CPU_ISR_Enable, they were bypassing the compiler memory barrier
directive which could lead to problems. This patch also changes the
type of the variable passed into these routines and addresses minor
style issues.
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libbsp/i386/pc386/console/vt.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/c/src/lib/libbsp/i386/pc386/console/vt.c b/c/src/lib/libbsp/i386/pc386/console/vt.c index 6bc064003d..73a2a794a2 100644 --- a/c/src/lib/libbsp/i386/pc386/console/vt.c +++ b/c/src/lib/libbsp/i386/pc386/console/vt.c @@ -68,13 +68,13 @@ kd_nosound(unsigned long ignored) void _kd_mksound(unsigned int hz, unsigned int ticks) { - unsigned int count = 0; - int level; + unsigned int count = 0; + rtems_interrupt_level level; if (hz > 20 && hz < 32767) count = 1193180 / hz; - _CPU_ISR_Disable(level); + rtems_interrupt_disable(level); /* del_timer(&sound_timer); */ if (count) { /* enable counter 2 */ @@ -94,7 +94,7 @@ _kd_mksound(unsigned int hz, unsigned int ticks) } else kd_nosound(0); - _CPU_ISR_Enable (level); + rtems_interrupt_enable(level); return; } |