Changeset d7e3f1ad in mainline


Ignore:
Timestamp:
2006-09-06T09:19:40Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9dae51d7
Parents:
e2bf639
Message:

Replace FB_BIG_ENDIAN with FB_INVERT_ENDIAN.
Omit tests for architecture endianness in deciding framebuffer endianness.

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/mips32/Makefile.inc

    re2bf639 rd7e3f1ad  
    7474        BFD_NAME = elf32-tradlittlemips
    7575        BFD = binary
    76         CFLAGS += -DFB_BIG_ENDIAN -DARCH_HAS_FPU -mips3
     76        CFLAGS += -DFB_INVERT_ENDIAN -DARCH_HAS_FPU -mips3
    7777endif
    7878ifeq ($(MACHINE),bgxemul)
  • kernel/genarch/src/fb/fb.c

    re2bf639 rd7e3f1ad  
    100100{
    101101        uint8_t *scr = dst;
    102 #if (defined(BIG_ENDIAN) || defined(FB_BIG_ENDIAN))
     102#if defined(FB_INVERT_ENDIAN)
    103103        scr[0] = RED(rgb, 8);
    104104        scr[1] = GREEN(rgb, 8);
     
    114114{
    115115        uint8_t *scr = src;
    116 #if (defined(BIG_ENDIAN) || defined(FB_BIG_ENDIAN))
     116#if defined(FB_INVERT_ENDIAN)
    117117        return scr[0] << 16 | scr[1] << 8 | scr[2];
    118118#else
  • uspace/fb/Makefile

    re2bf639 rd7e3f1ad  
    6262endif
    6363ifeq ($(ARCH), mips32)
    64         CFLAGS += -DFB_BIG_ENDIAN
     64        CFLAGS += -DFB_INVERT_ENDIAN
    6565endif
    6666
  • uspace/fb/fb.c

    re2bf639 rd7e3f1ad  
    155155{
    156156        uint8_t *scr = dst;
    157 #if (defined(BIG_ENDIAN) || defined(FB_BIG_ENDIAN))
     157#if defined(FB_INVERT_ENDIAN)
    158158        scr[0] = RED(rgb, 8);
    159159        scr[1] = GREEN(rgb, 8);
     
    171171{
    172172        uint8_t *scr = src;
    173 #if (defined(BIG_ENDIAN) || defined(FB_BIG_ENDIAN))
     173#if defined(FB_INVERT_ENDIAN)
    174174        return scr[0] << 16 | scr[1] << 8 | scr[2];
    175175#else
Note: See TracChangeset for help on using the changeset viewer.