lkml.org 
[lkml]   [2002]   [Feb]   [14]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateThu, 14 Feb 2002 17:37:05 +0100
FromGerd Knorr <>
SubjectRe: [PATCH] 2.5.5-pre1 fix build error in drivers/video/vesafb.c
> -               pmi_base  = (unsigned short*)bus_to_virt(((unsigned long)screen_info.vesapm_seg << 4) + screen_info.vesapm_off);
> +               pmi_base  = (unsigned short*)phys_to_virt(((unsigned long)screen_info.vesapm_seg << 4) + screen_info.vesapm_off);
Looks fine to me.  While s/bus/phys/ isn't the approximate fix for many
drivers, at this place it is correct.  The address is a segment:offset
pointer to a physical memory address somewhere in the VESA BIOS.

  Gerd

-- 
Man muß die Software wacker hüten
weil in der Welt die Hacker wüten
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:18    [from the cache]
©2003-2008