summaryrefslogtreecommitdiffstats
path: root/c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2006-12-13 12:35:01 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2006-12-13 12:35:01 +0000
commit71ce7e75862d2b6387e2099a84bbeb81c3ea1488 (patch)
tree1ca706f08c2c0d8cf7b8a88d7c0da394e34ee061 /c
parent2006-12-13 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-71ce7e75862d2b6387e2099a84bbeb81c3ea1488.tar.bz2
2006-12-13 Alexey Shamrin <shamrin@gmail.com>
PR 1189/bsps * console/outch.c: If you print a character with the code larger than 127 (extended ASCII) to the VGA console, then it blinks. The reason: char == signed char, so such characters get represented by negative numbers. The sign bit then goes to attribute byte, resulting in the blinking.
Diffstat (limited to 'c')
-rw-r--r--c/src/lib/libbsp/i386/pc386/ChangeLog9
-rw-r--r--c/src/lib/libbsp/i386/pc386/console/outch.c2
2 files changed, 10 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/i386/pc386/ChangeLog b/c/src/lib/libbsp/i386/pc386/ChangeLog
index 24e882f2d0..6f21c732ef 100644
--- a/c/src/lib/libbsp/i386/pc386/ChangeLog
+++ b/c/src/lib/libbsp/i386/pc386/ChangeLog
@@ -1,3 +1,12 @@
+2006-12-13 Alexey Shamrin <shamrin@gmail.com>
+
+ PR 1189/bsps
+ * console/outch.c: If you print a character with the code larger than
+ 127 (extended ASCII) to the VGA console, then it blinks. The reason:
+ char == signed char, so such characters get represented by negative
+ numbers. The sign bit then goes to attribute byte, resulting in the
+ blinking.
+
2006-12-02 Ralf Corsépius <ralf.corsepius@rtems.org>
* configure.ac: New BUG-REPORT address.
diff --git a/c/src/lib/libbsp/i386/pc386/console/outch.c b/c/src/lib/libbsp/i386/pc386/console/outch.c
index 7c7371b70b..1ef9a54689 100644
--- a/c/src/lib/libbsp/i386/pc386/console/outch.c
+++ b/c/src/lib/libbsp/i386/pc386/console/outch.c
@@ -141,7 +141,7 @@ videoPutChar(char car)
return;
}
default: {
- *pt_bitmap = car | attribute;
+ *pt_bitmap = (unsigned char)car | attribute;
advanceCursor();
return;
}