Changeset 7688b5d in mainline for kernel/arch/mips32/src/mips32.c


Ignore:
Timestamp:
2006-10-18T09:54:13Z (19 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6fb30a1
Parents:
19de05f
Message:

mips32: update for new IRQ subsystem

File:
1 edited

Legend:

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

    r19de05f r7688b5d  
    5555#include <genarch/fb/fb.h>
    5656#include <macros.h>
     57#include <ddi/device.h>
    5758
    5859#include <arch/asm/regname.h>
     
    99100
    100101        /* Copy the exception vectors to the right places */
    101         memcpy(TLB_EXC, (char *)tlb_refill_entry, EXCEPTION_JUMP_SIZE);
    102         memcpy(NORM_EXC, (char *)exception_entry, EXCEPTION_JUMP_SIZE);
    103         memcpy(CACHE_EXC, (char *)cache_error_entry, EXCEPTION_JUMP_SIZE);
    104 
    105         interrupt_init();
     102        memcpy(TLB_EXC, (char *) tlb_refill_entry, EXCEPTION_JUMP_SIZE);
     103        memcpy(NORM_EXC, (char *) exception_entry, EXCEPTION_JUMP_SIZE);
     104        memcpy(CACHE_EXC, (char *) cache_error_entry, EXCEPTION_JUMP_SIZE);
     105       
    106106        /*
    107107         * Switch to BEV normal level so that exception vectors point to the kernel.
     
    114114         */
    115115        cp0_mask_all_int();
    116 
    117         /*
    118          * Unmask hardware clock interrupt.
    119          */
    120         cp0_unmask_int(TIMER_IRQ);
    121 
    122         console_init();
     116               
    123117        debugger_init();
    124118}
     
    126120void arch_post_mm_init(void)
    127121{
     122        interrupt_init();
     123        console_init(device_assign_devno());
    128124#ifdef CONFIG_FB
    129125        fb_init(0x12000000, 640, 480, 24, 1920, false); // gxemul framebuffer
    130126#endif
    131         sysinfo_set_item_val("machine." STRING(MACHINE),NULL,1);
     127        sysinfo_set_item_val("machine." STRING(MACHINE), NULL, 1);
    132128}
    133129
Note: See TracChangeset for help on using the changeset viewer.