Changeset 925fdd7 in mainline for boot/genarch/ofw.c


Ignore:
Timestamp:
2008-12-10T21:41:22Z (16 years ago)
Author:
Pavel Rimsky <rimskyp@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bb74e8ab
Parents:
8af9950
Message:

Fixed the bug when on SunBlade1500 we wrote to an address outside the framebuffer memory. A nasty hack to the 8-bit palette so that on sb1500 we do not have to turn black into white and white into black.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/genarch/ofw.c

    r8af9950 r925fdd7  
    299299        unsigned int sc = ofw_get_size_cells(ofw_memory) /
    300300            (sizeof(uintptr_t) / sizeof(uint32_t));
    301         printf("address cells: %d, size cells: %d. ", ac, sc);
    302301
    303302        uintptr_t buf[((ac + sc) * MEMMAP_MAX_RECORDS)];
     
    406405                return false;
    407406
    408         /* setup the palette so that the 3:2:3 scheme is usable */
     407        /* setup the palette so that the (inverted) 3:2:3 scheme is usable */
    409408        unsigned int i;
    410409        for (i = 0; i < 256; i++)
    411410                if (ofw_call("call-method", 6, 1, NULL, "color!", screen,
    412                         i,
     411                        255 - i,
    413412                        i << 5,
    414413                        (i >> 3) << 6,
Note: See TracChangeset for help on using the changeset viewer.