Changeset 0683992 in mainline


Ignore:
Timestamp:
2015-05-23T03:50:49Z (9 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5c0e012, 94e46c9
Parents:
7edfde9
Message:

amdm37x_dispc: Unmap the old buffer, not the new.

Fixes #608

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/fb/amdm37x_dispc/amdm37x_dispc.c

    r7edfde9 r0683992  
    282282                return ret;
    283283        }
     284        if (dispc->fb_data)
     285                dmamem_unmap_anonymous(dispc->fb_data);
    284286       
     287        dispc->fb_data = buffer;
    285288        amdm37x_dispc_setup_fb(dispc->regs, x, y, bpp *8, (uint32_t)pa);
    286289        dispc->active_fb.idx = mode.index;
     
    290293        dispc->active_fb.bpp = bpp;
    291294        dispc->active_fb.pixel2visual = p2v;
    292         dispc->fb_data = buffer;
    293295        dispc->size = size;
    294296        assert(mode.index < 1);
    295297
    296         if (dispc->fb_data)
    297                 dmamem_unmap_anonymous(dispc->fb_data);
    298298        return EOK;
    299299}
Note: See TracChangeset for help on using the changeset viewer.