lkml.org 
[lkml]   [1998]   [Aug]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: linux-2.1.115 on alpha: bug in memsetw_io (or memset_c_io)
On Sat, Aug 08, 1998 at 05:37:40PM -0700, Richard Henderson wrote:
> Martin, I think it is a bug in the console code that an unaligned
> address was ever given to scr_memsetw. The characters in video
> memory are always aligned, therefore we must have an off-by-one bug.

Urk, no, it's my bad. Sorry about that.


r~


Index: arch/alpha/lib/io.c
===================================================================
RCS file: /home/rth/CVSROOT/linux/arch/alpha/lib/io.c,v
retrieving revision 1.3
diff -u -p -r1.3 io.c
--- io.c 1998/07/24 05:40:56 1.3
+++ io.c 1998/08/09 02:39:32
@@ -481,12 +481,12 @@ void _memset_c_io(unsigned long to, unsi
}
count += 8;
}
- if (count >= 4 && (to & 4)) {
+ if (count >= 4) {
writel(c, to);
to += 4;
count -= 4;
}
- if (count >= 2 && (to & 2)) {
+ if (count >= 2) {
writew(c, to);
to += 2;
count -= 2;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html

\
 
 \ /
  Last update: 2005-03-22 13:43    [W:2.207 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site