Changeset 4fb6bf36 in mainline for kernel/arch/amd64/src/amd64.c


Ignore:
Timestamp:
2008-01-11T17:49:35Z (16 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0ee4322
Parents:
eb27ce5a
Message:

move cpuid tests from amd64.c to boot.S

File:
1 edited

Legend:

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

    reb27ce5a r4fb6bf36  
    104104void arch_pre_mm_init(void)
    105105{
    106         cpu_info_t cpuid_s;
    107 
    108         cpuid(AMD_CPUID_EXTENDED,&cpuid_s);
    109         if (! (cpuid_s.cpuid_edx & (1<<AMD_EXT_NOEXECUTE)))
    110                 panic("Processor does not support No-execute pages.\n");
    111 
    112         cpuid(INTEL_CPUID_STANDARD,&cpuid_s);
    113         if (! (cpuid_s.cpuid_edx & (1<<INTEL_FXSAVE)))
    114                 panic("Processor does not support FXSAVE/FXRESTORE.\n");
    115        
    116         if (! (cpuid_s.cpuid_edx & (1<<INTEL_SSE2)))
    117                 panic("Processor does not support SSE2 instructions.\n");
    118 
    119         /* Enable No-execute pages */
     106        /* Enable no-execute pages */
    120107        set_efer_flag(AMD_NXE_FLAG);
    121108        /* Enable FPU */
     
    124111        /* Initialize segmentation */
    125112        pm_init();
    126 
    127         /* Disable I/O on nonprivileged levels
    128          * clear the NT(nested-thread) flag
     113       
     114        /* Disable I/O on nonprivileged levels
     115         * clear the NT (nested-thread) flag
    129116         */
    130117        clean_IOPL_NT_flags();
Note: See TracChangeset for help on using the changeset viewer.