Changeset 6da1013f in mainline for kernel/arch/mips32/src/mm/frame.c


Ignore:
Timestamp:
2009-02-12T20:09:19Z (16 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
84266669
Parents:
7004747
Message:

simplify configuration
introduce arch_construct_function and inb/outb (sometimes empty) on all platforms
various code cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/mips32/src/mm/frame.c

    r7004747 r6da1013f  
    7676static bool frame_available(pfn_t frame)
    7777{
    78 #if MACHINE == msim
     78#ifdef msim
    7979        /* MSIM device (dprinter) */
    8080        if (frame == (KA2PA(MSIM_VIDEORAM) >> ZERO_PAGE_WIDTH))
     
    8686#endif
    8787
    88 #if MACHINE == simics
     88#ifdef simics
    8989        /* Simics device (serial line) */
    9090        if (frame == (KA2PA(SERIAL_ADDRESS) >> ZERO_PAGE_WIDTH))
     
    9292#endif
    9393
    94 #if (MACHINE == lgxemul) || (MACHINE == bgxemul)
     94#if defined(lgxemul) || defined(bgxemul)
    9595        /* gxemul devices */
    9696        if (overlaps(frame << ZERO_PAGE_WIDTH, ZERO_PAGE_SIZE,
     
    219219                                        if (ZERO_PAGE_VALUE != 0xdeadbeef)
    220220                                                avail = false;
    221 #if (MACHINE == lgxemul) || (MACHINE == bgxemul)
     221#if defined(lgxemul) || defined(bgxemul)
    222222                                        else {
    223223                                                ZERO_PAGE_VALUE_KSEG1(frame) = 0xaabbccdd;
Note: See TracChangeset for help on using the changeset viewer.