Changeset 8c15255 in mainline for kernel/arch/ia32/include


Ignore:
Timestamp:
2011-08-18T21:32:56Z (14 years ago)
Author:
Martin Sucha <sucha14@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ac7f81d
Parents:
f4fa6d9
Message:

Add support for i486/vortex86 processor

Location:
kernel/arch/ia32/include
Files:
3 edited

Legend:

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

    rf4fa6d9 r8c15255  
    311311}
    312312
     313#ifndef PROCESSOR_i486
    313314/** Write to MSR */
    314315NO_TRACE static inline void write_msr(uint32_t msr, uint64_t value)
     
    321322        );
    322323}
     324#endif
    323325
    324326NO_TRACE static inline uint64_t read_msr(uint32_t msr)
  • kernel/arch/ia32/include/atomic.h

    rf4fa6d9 r8c15255  
    121121        asm volatile (
    122122                "0:\n"
     123#ifndef PROCESSOR_i486
    123124                "pause\n"        /* Pentium 4's HT love this instruction */
     125#endif
    124126                "mov %[count], %[tmp]\n"
    125127                "testl %[tmp], %[tmp]\n"
  • kernel/arch/ia32/include/cycle.h

    rf4fa6d9 r8c15255  
    4040NO_TRACE static inline uint64_t get_cycle(void)
    4141{
     42#ifdef PROCESSOR_i486
     43        return 0;
     44#else
    4245        uint64_t v;
    4346       
     
    4851       
    4952        return v;
     53#endif
    5054}
    5155
Note: See TracChangeset for help on using the changeset viewer.