Changeset ddd043ce in mainline


Ignore:
Timestamp:
2006-05-15T07:56:15Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9f29243
Parents:
ab5f8bf
Message:

Force mips32 frame buffer access to be always big endian.

Fix vmaxlma.c warning when building ia64.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • arch/mips32/Makefile.inc

    rab5f8bf rddd043ce  
    8181        BFD_NAME=elf32-tradlittlemips
    8282        BFD = ecoff-littlemips
    83         CFLAGS += -DARCH_HAS_FPU -mips3
     83        CFLAGS += -DFB_BIG_ENDIAN -DARCH_HAS_FPU -mips3
    8484        INIT_ADDRESS = 0x81800000
    8585endif
  • contrib/arch/ia64/vmaxlma.c

    rab5f8bf rddd043ce  
    1919 
    2020#include <stdio.h>
     21#include <stdlib.h>
    2122#include <sys/types.h>
    2223#include <sys/stat.h>
  • genarch/src/fb/fb.c

    rab5f8bf rddd043ce  
    9292        unsigned int startbyte = POINTPOS(x, y);
    9393
    94 #ifdef BIG_ENDIAN
     94#if (defined(BIG_ENDIAN) || defined(FB_BIG_ENDIAN))
    9595        fbaddress[startbyte] = RED(color, 8);
    9696        fbaddress[startbyte + 1] = GREEN(color, 8);
     
    108108        unsigned int startbyte = POINTPOS(x, y);
    109109
    110 #ifdef BIG_ENDIAN
     110#if (defined(BIG_ENDIAN) || defined(FB_BIG_ENDIAN))
    111111        return fbaddress[startbyte] << 16 | fbaddress[startbyte + 1] << 8 | fbaddress[startbyte + 2];
    112112#else
Note: See TracChangeset for help on using the changeset viewer.