Changeset 6da1013f in mainline for kernel/arch/mips32/include


Ignore:
Timestamp:
2009-02-12T20:09:19Z (17 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

Location:
kernel/arch/mips32/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/mips32/include/asm.h

    r7004747 r6da1013f  
    7171extern ipl_t interrupts_read(void);
    7272
     73/** No I/O port address space on MIPS. */
     74static inline void outb(ioport_t port, uint8_t v)
     75{
     76}
     77
     78/** No I/O port address space on MIPS. */
     79static inline uint8_t inb(ioport_t port)
     80{
     81        return 0;
     82}
     83
    7384#endif
    7485
  • kernel/arch/mips32/include/context_offset.h

    r7004747 r6da1013f  
    115115        sw $gp,OFFSET_GP(\ctx)
    116116
    117 #ifndef KERNEL         
     117#ifndef KERNEL
    118118        sw $k1,OFFSET_TLS(\ctx)
    119119
    120 # ifdef CONFIG_MIPS_FPU
     120#ifdef CONFIG_FPU
    121121        mfc1 $t0,$20
    122122        sw $t0, OFFSET_F20(\ctx)
     
    151151        mfc1 $t0,$30
    152152        sw $t0, OFFSET_F30(\ctx)
    153 # endif /* CONFIG_MIPS_FPU */   
     153#endif /* CONFIG_FPU */
    154154#endif /* KERNEL */
    155155
     
    173173        lw $k1,OFFSET_TLS(\ctx)
    174174
    175 # ifdef CONFIG_MIPS_FPU
     175#ifdef CONFIG_FPU
    176176        lw $t0, OFFSET_F20(\ctx)
    177177        mtc1 $t0,$20
     
    206206        lw $t0, OFFSET_F30(\ctx)
    207207        mtc1 $t0,$30
    208 # endif /* CONFIG_MIPS_FPU */
    209        
     208#endif /* CONFIG_FPU */
    210209#endif /* KERNEL */
     210
    211211        lw $ra,OFFSET_PC(\ctx)
    212212        lw $sp,OFFSET_SP(\ctx)
Note: See TracChangeset for help on using the changeset viewer.