[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] Simplify x86_32 boot code by removing bogus P6 check (really it was a
ChangeSet 1.1764, 2005/06/28 09:08:24+01:00, kaf24@xxxxxxxxxxxxxxxxxxxx Simplify x86_32 boot code by removing bogus P6 check (really it was a 486 check, and we can assume everyone has CPUID I think). Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx> x86_32.S | 19 ------------------- 1 files changed, 19 deletions(-) diff -Nru a/xen/arch/x86/boot/x86_32.S b/xen/arch/x86/boot/x86_32.S --- a/xen/arch/x86/boot/x86_32.S 2005-06-28 05:02:50 -04:00 +++ b/xen/arch/x86/boot/x86_32.S 2005-06-28 05:02:50 -04:00 @@ -20,16 +20,10 @@ /* Checksum: must be the negated sum of the first two fields. */ .long -0x1BADB005 -bad_cpu_msg: - .asciz "ERR: Not a P6-compatible CPU!" not_multiboot_msg: .asciz "ERR: Not a Multiboot bootloader!" -bad_cpu: - mov $bad_cpu_msg-__PAGE_OFFSET,%esi - jmp print_err not_multiboot: mov $not_multiboot_msg-__PAGE_OFFSET,%esi -print_err: mov $0xB8000,%edi # VGA framebuffer 1: mov (%esi),%bl test %bl,%bl # Terminate on '\0' sentinel @@ -60,19 +54,6 @@ /* Reset EFLAGS (subsumes CLI and CLD). */ pushl $0 popf - - /* CPU type checks. We need P6+. */ - mov $0x200000,%edx - pushfl - pop %ecx - and %edx,%ecx - jne bad_cpu # ID bit should be clear - pushl %edx - popfl - pushfl - pop %ecx - and %edx,%ecx - je bad_cpu # ID bit should be set /* Set up FPU. */ fninit _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |