Changeset 6da1013f in mainline for kernel/arch/mips32/src/mips32.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/mips32.c

    r7004747 r6da1013f  
    112112        cp0_status_write(cp0_status_read() &
    113113            ~(cp0_status_bev_bootstrap_bit | cp0_status_erl_error_bit));
    114 
    115         /* 
    116          * Mask all interrupts 
     114       
     115        /*
     116         * Mask all interrupts
    117117         */
    118118        cp0_mask_all_int();
    119                
     119       
    120120        debugger_init();
    121121}
     
    133133                .y = 480,
    134134                .scan = 1920,
    135                 .visual = VISUAL_RGB_8_8_8,
     135                .visual = VISUAL_BGR_8_8_8,
    136136        };
    137137        fb_init(&gxemul_prop);
    138138#endif
    139         sysinfo_set_item_val("machine." STRING(MACHINE), NULL, 1);
     139
     140#ifdef msim
     141        sysinfo_set_item_val("machine.msim", NULL, 1);
     142#endif
     143
     144#ifdef simics
     145        sysinfo_set_item_val("machine.simics", NULL, 1);
     146#endif
     147
     148#ifdef bgxemul
     149        sysinfo_set_item_val("machine.bgxemul", NULL, 1);
     150#endif
     151
     152#ifdef lgxemul
     153        sysinfo_set_item_val("machine.lgxemul", NULL, 1);
     154#endif
    140155}
    141156
     
    162177            (uintptr_t) kernel_uarg->uspace_entry);
    163178       
    164         while (1)
    165                 ;
     179        while (1);
    166180}
    167181
     
    196210        ___halt();
    197211       
    198         while (1)
    199                 ;
     212        while (1);
     213}
     214
     215/** Construct function pointer
     216 *
     217 * @param fptr   function pointer structure
     218 * @param addr   function address
     219 * @param caller calling function address
     220 *
     221 * @return address of the function pointer
     222 *
     223 */
     224void *arch_construct_function(fncptr_t *fptr, void *addr, void *caller)
     225{
     226        return addr;
    200227}
    201228
Note: See TracChangeset for help on using the changeset viewer.