Changeset c18e666 in mainline
- Timestamp:
- 2009-03-30T20:30:32Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0dd1d444
- Parents:
- 18251cc
- Location:
- kernel/arch
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/include/cpuid.h
r18251cc rc18e666 36 36 #define KERN_amd64_CPUID_H_ 37 37 38 #define AMD_CPUID_EXTENDED 39 #define AMD_EXT_NOEXECUTE 40 #define AMD_EXT_LONG_MODE 38 #define AMD_CPUID_EXTENDED 0x80000001 39 #define AMD_EXT_NOEXECUTE 20 40 #define AMD_EXT_LONG_MODE 29 41 41 42 #define INTEL_CPUID_STANDARD 0x00000001 43 #define INTEL_CPUID_EXTENDED 0x80000000 44 #define INTEL_SSE2 26 45 #define INTEL_FXSAVE 24 42 #define INTEL_CPUID_LEVEL 0x00000000 43 #define INTEL_CPUID_STANDARD 0x00000001 44 #define INTEL_CPUID_EXTENDED 0x80000000 45 #define INTEL_SSE2 26 46 #define INTEL_FXSAVE 24 46 47 47 48 #ifndef __ASM__ -
kernel/arch/ia32/include/cpuid.h
r18251cc rc18e666 35 35 #ifndef KERN_ia32_CPUID_H_ 36 36 #define KERN_ia32_CPUID_H_ 37 38 #define INTEL_CPUID_LEVEL 0x00000000 39 #define INTEL_CPUID_STANDARD 0x00000001 40 #define INTEL_PSE 3 41 #define INTEL_SEP 11 42 43 #ifndef __ASM__ 37 44 38 45 #include <arch/types.h> … … 105 112 } 106 113 114 #endif /* !def __ASM__ */ 107 115 #endif 108 116 -
kernel/arch/ia32/src/boot/boot.S
r18251cc rc18e666 32 32 #include <arch/mm/page.h> 33 33 #include <arch/pm.h> 34 #include <arch/cpuid.h> 34 35 35 36 #define START_STACK (BOOT_OFFSET - BOOT_STACK_SIZE) … … 68 69 movl %ebx, grub_ebx 69 70 70 xorl %eax, %eax71 movl $(INTEL_CPUID_LEVEL), %eax 71 72 cpuid 72 73 cmp $0x0, %eax # any function > 0? 73 74 jbe pse_unsupported 74 movl $0x1, %eax # basic function code 1 75 76 movl $(INTEL_CPUID_STANDARD), %eax 75 77 cpuid 76 bt $ 3, %edx # test if PSE is supported78 bt $(INTEL_PSE), %edx 77 79 jc pse_supported 78 80 … … 82 84 83 85 pse_supported: 86 87 bt $(INTEL_SEP), %edx 88 jc sep_supported 89 90 movl $sep_msg, %esi 91 jmp error_halt 92 93 sep_supported: 84 94 85 95 #include "vesa_prot.inc" … … 214 224 pse_msg: 215 225 .asciz "Page Size Extension not supported. System halted." 226 227 sep_msg: 228 .asciz "SYSENTER/SYSEXIT not supported. System halted."
Note:
See TracChangeset
for help on using the changeset viewer.