[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Small PIC Fixes

From: ehem+grub
Subject: Small PIC Fixes
Date: Tue, 4 Jan 2011 21:58:57 -0800 (PST)

Perhaps not the biggest deal, but I do like to get low-hanging fixes out
of the way if they appear.

One very significant item I found. It appears GCC is fine with %rbx being
clobbered when building PIC in 64-bit mode, even though it has problems
with %ebx being clobbered when building PIC in 32-bit mode.

One other item I did notice. Are there really any processors in the amd64
class that *don't* support CPUID? I'd like to hardcode
grub_cpu_is_cpuid_supported() to return 1 if __x86_64__ is defined, but
I'm a tad worried I'll be unpleasantly surprised.

(\___(\___(\______          --=> 8-) EHM <=--          ______/)___/)___/)
 \BS (    |         address@hidden PGP F6B23DE0         |    )   /
  \_CS\   |  _____  -O #include <stddisclaimer.h> O-   _____  |   /  _/
2477\___\_|_/DC21 03A0 5D61 985B <-PGP-> F2BE 6526 ABD2 F6B2\_|_/___/3DE0

Attachment: pic.diff
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]