Changeset 3396f59 in mainline for arch/amd64/src/amd64.c


Ignore:
Timestamp:
2005-09-04T08:28:55Z (20 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8ff2f3f
Parents:
005384ad
Message:

Fixed gdtr naming issues after ia32 changes.
Fixed stack alignment on new thread to by multiple of 16,
we are now ABI-correct and we do not #GP on va_arg to boot.
Fixed bad exception register names reporting.
Fixed bad _hardcoded_load_addr, which caused allocation of kernel text
frames.

File:
1 edited

Legend:

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

    r005384ad r3396f59  
    4444#include <arch/cpuid.h>
    4545#include <arch/acpi/acpi.h>
     46#include <panic.h>
    4647
    4748void arch_pre_mm_init(void)
     
    5051
    5152        cpuid(AMD_CPUID_EXTENDED,&cpuid_s);
    52         if (! (cpuid_s.cpuid_edx & (1<<AMD_EXT_NOEXECUTE))) {
    53                 printf("We do not support NX!!-----------\n");
    54                 printf("%X------\n",cpuid_s.cpuid_edx);
    55                 cpu_halt();
    56         }
     53        if (! (cpuid_s.cpuid_edx & (1<<AMD_EXT_NOEXECUTE)))
     54                panic("Processor does not support No-execute pages.\n");
     55
     56        cpuid(INTEL_CPUID_STANDARD,&cpuid_s);
     57        if (! (cpuid_s.cpuid_edx & (1<<INTEL_FXSAVE)))
     58                panic("Processor does not support FXSAVE/FXRESTORE.\n");
     59       
     60        if (! (cpuid_s.cpuid_edx & (1<<INTEL_SSE2)))
     61                panic("Processor does not support SSE2 instructions.\n");
     62
     63        /* Enable No-execute pages */
    5764        set_efer_flag(AMD_NXE_FLAG);
     65        /* Enable FPU */
     66        cpu_setup_fpu();
    5867
    5968        pm_init();
Note: See TracChangeset for help on using the changeset viewer.