[lkml]   [1999]   [Jun]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: bug in fbmem.c,

> I'v traced a little bug in the fbmem code. i don't know if it's the right
> way to
> correct it, but on my SX164 alpha this seems to work.
> before the patch: cat /dev/fb0 > foo end with an execption.
> after the patch: cat /dev/fb0 > foo ; cat foo > /dev/fb0 work.

Can you try to
h = open (/dev/fb0, )
read(h, 0, 256)
? Yes, I want you to read into null. I suspect you need something like
memcpy_fromio_to_user() which does not actually exist :-).

> There are others problems with the fbdriver on alpha:
> mmapping the /dev/fb0 and writing to it give me a *RANDOM* 'PYXIS machine
> check NOT expected'
> with no effect on the screen.
> Maybe someone have an idea?

> - if (copy_to_user(buf, base_addr+p, copy_size))
> - return -EFAULT;
> + memcpy_fromio(buf, base_addr+p, copy_size);

This is likely not right.

The best software in life is free (not shareware)! Pavel
GCM d? s-: !g p?:+ au- a--@ w+ v- C++@ UL+++ L++ N++ E++ W--- M- Y- R+

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

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