Changeset 7633b109 in mainline for genarch/src/fb/fb.c


Ignore:
Timestamp:
2006-05-19T13:14:37Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5ca586a1
Parents:
c0bc189
Message:

Change the way the framebuffer is mapped so that sparc64 is usable again.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • genarch/src/fb/fb.c

    rc0bc189 r7633b109  
    3333#include <sysinfo/sysinfo.h>
    3434#include <mm/slab.h>
    35 #include <mm/as.h>
    3635#include <bitops.h>
    3736#include <align.h>
     
    361360        fbaddress = (__u8 *) PA2KA(PFN2ADDR(frame_alloc(fborder, FRAME_KA)));
    362361       
    363         pfn_t i;
    364         for (i = 0; i < ADDR2PFN(ALIGN_UP(fbsize, PAGE_SIZE)); i++)
    365                 page_mapping_insert(AS_KERNEL, (__address) fbaddress + PFN2ADDR(i), addr + PFN2ADDR(i), PAGE_NOT_CACHEABLE);
     362        fb_map_arch((__address) fbaddress, (__address) addr, fbsize);
    366363       
    367364        xres = x;
Note: See TracChangeset for help on using the changeset viewer.