Ignore:
Timestamp:
2008-12-07T00:41:59Z (16 years ago)
Author:
Pavel Rimsky <rimskyp@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5d9430d7
Parents:
2b1f860
Message:

Added forgotten stuff related to framebuffers with offsets. Got rid of VISUAL_SB1500_PALETTE.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/src/drivers/scr.c

    r2b1f860 r20eb5e4d  
    7979       
    8080        uintptr_t fb_addr;
     81        unsigned int fb_offset = 0;
    8182        uint32_t fb_width = 0;
    8283        uint32_t fb_height = 0;
     
    168169                }
    169170
     171                fb_offset = 4 * 0x2000;
     172
    170173                switch (fb_depth) {
    171174                case 8:
    172175                        fb_scanline = fb_linebytes * (fb_depth >> 3);
    173                         visual = VISUAL_SB1500_PALETTE;
     176                        visual = VISUAL_INDIRECT_8;
    174177                        break;
    175178                case 16:
     
    226229        fb_properties_t props = {
    227230                .addr = fb_addr,
    228                 .offset = 0,
     231                .offset = fb_offset,
    229232                .x = fb_width,
    230233                .y = fb_height,
Note: See TracChangeset for help on using the changeset viewer.