Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Commit [cf8c87] Maximize Restore History

m68k/atari - atafb: convert allocation of fb ram to new interface

The new atari_stram_alloc interface returns kernel virtual addresses
even if the kernel runs in FastRAM. These addresses are not
guaranteed to be identical with the physical addresses. Since ST-RAM
mappings have not been set up by mem_init, virt_to_phys() and its
cousin do not work and the atari_stram_to_phys() etc. helpers must
be used to determine physical addresses.

fb.fix->smem_start needs physical addresses, fb.par->screen_base
needs virtual addresses. Take care of the virt-to-phys conversion
both on fb init and par changes.

Signed-off-by: Michael Schmitz <schmitz@debian.org>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>

Michael Schmitz Michael Schmitz 2014-03-31

Geert Uytterhoeven Geert Uytterhoeven 2014-05-26

changed drivers
changed drivers/video
changed drivers/video/fbdev
changed drivers/video/fbdev/atafb.c
drivers
Directory.
drivers/video
Directory.
drivers/video/fbdev
Directory.
drivers/video/fbdev/atafb.c Diff Switch to side-by-side view
Loading...