Changeset e94f730 in mainline


Ignore:
Timestamp:
2009-02-17T00:49:50Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
85156d3
Parents:
06da55b
Message:

eliminate non-standard -D$(MACHINE)

Location:
kernel/arch/mips32
Files:
4 edited

Legend:

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

    r06da55b re94f730  
    3838GCC_CFLAGS += -mno-abicalls -G 0 -fno-zero-initialized-in-bss
    3939
    40 DEFS += -D__32_BITS__ -D$(MACHINE) -DKERNEL_LOAD_ADDRESS=$(KERNEL_LOAD_ADDRESS)
     40DEFS += -D__32_BITS__ -DKERNEL_LOAD_ADDRESS=$(KERNEL_LOAD_ADDRESS)
    4141
    4242## Accepted MACHINEs
  • kernel/arch/mips32/_link.ld.in

    r06da55b re94f730  
    11/*
    2  *  MIPS32 linker script
    3  * 
     2 * MIPS32 linker script
     3 *
    44 *  kernel text
    55 *  kernel data
    6  * 
     6 *
    77 */
     8
    89#undef mips
    910#define mips mips
    1011
    1112OUTPUT_ARCH(mips)
    12 
    1313ENTRY(kernel_image_start)
    1414
     
    2222        .data : {
    2323                kdata_start = .;
    24                 *(.data);               /* initialized data */
     24                *(.data);                       /* initialized data */
    2525                hardcoded_ktext_size = .;
    26                 LONG(ktext_end - ktext_start); 
     26                LONG(ktext_end - ktext_start);
    2727                hardcoded_kdata_size = .;
    2828                LONG(kdata_end - kdata_start);
     
    3434                *(.sbss);
    3535                *(.scommon);
    36                 *(.bss);                /* uninitialized static variables */
    37                 *(COMMON);              /* global variables */
     36                *(.bss);                        /* uninitialized static variables */
     37                *(COMMON);                      /* global variables */
    3838                symbol_table = .;
    39                 *(symtab.*);             
     39                *(symtab.*);
    4040        }
    4141        _gp = . + 0x8000;
    4242        .lit8 : { *(.lit8) }
    4343        .lit4 : { *(.lit4) }
    44 
     44       
    4545        kdata_end = .;
    46 
     46       
    4747        /DISCARD/ : {
    48           *(.mdebug*);
    49           *(.pdr);
    50           *(.comment);
    51           *(.note);
     48                *(.mdebug*);
     49                *(.pdr);
     50                *(.comment);
     51                *(.note);
    5252        }
    5353}
  • kernel/arch/mips32/src/mips32.c

    r06da55b re94f730  
    138138#endif
    139139
    140 #ifdef msim
     140#ifdef MACHINE_msim
    141141        sysinfo_set_item_val("machine.msim", NULL, 1);
    142142#endif
    143143
    144 #ifdef simics
     144#ifdef MACHINE_simics
    145145        sysinfo_set_item_val("machine.simics", NULL, 1);
    146146#endif
    147147
    148 #ifdef bgxemul
     148#ifdef MACHINE_bgxemul
    149149        sysinfo_set_item_val("machine.bgxemul", NULL, 1);
    150150#endif
    151151
    152 #ifdef lgxemul
     152#ifdef MACHINE_lgxemul
    153153        sysinfo_set_item_val("machine.lgxemul", NULL, 1);
    154154#endif
  • kernel/arch/mips32/src/mm/frame.c

    r06da55b re94f730  
    7878static bool frame_available(pfn_t frame)
    7979{
    80 #ifdef msim
     80#ifdef MACHINE_msim
    8181        /* MSIM device (dprinter) */
    8282        if (frame == (KA2PA(MSIM_VIDEORAM) >> ZERO_PAGE_WIDTH))
     
    8888#endif
    8989
    90 #ifdef simics
     90#ifdef MACHINE_simics
    9191        /* Simics device (serial line) */
    9292        if (frame == (KA2PA(SERIAL_ADDRESS) >> ZERO_PAGE_WIDTH))
     
    9494#endif
    9595
    96 #if defined(lgxemul) || defined(bgxemul)
     96#if defined(MACHINE_lgxemul) || defined(MACHINE_bgxemul)
    9797        /* gxemul devices */
    9898        if (overlaps(frame << ZERO_PAGE_WIDTH, ZERO_PAGE_SIZE,
Note: See TracChangeset for help on using the changeset viewer.