Bug 246250 - 1.3239 kernel won't compile on i686
1.3239 kernel won't compile on i686
Status: CLOSED ERRATA
Product: Fedora
Classification: Fedora
Component: kernel (Show other bugs)
7
i686 Linux
low Severity low
: ---
: ---
Assigned To: Kernel Maintainer List
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-06-29 11:52 EDT by H.J. Lu
Modified: 2007-11-30 17:12 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-08-27 10:33:15 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)
A patch to remove ULL in SVM MSR indexes (482 bytes, patch)
2007-06-29 11:52 EDT, H.J. Lu
no flags Details | Diff

  None (edit)
Description H.J. Lu 2007-06-29 11:52:20 EDT
MSR index is 32bit not 64bit. All other MSR indexes are defined
without the ULL suffix. Otherwise, you will get

[hjl@gnu-5 tmp]$ cat foo.c
typedef unsigned long long u64;

int is_disabled(void)
{
 u64 vm_cr;

 do { unsigned long l__,h__; __asm__ __volatile__("rdmsr" : "=a" (l__),
"=d" (h__) : "c" (0xc0010114ULL)); vm_cr = l__; vm_cr |=
((u64)h__<<32); } while(0);
 if (vm_cr & (1 << 4))
  return 1;

 return 0;
}
[hjl@gnu-5 tmp]$ gcc -m32 -S foo.c
foo.c: In function â_disabledâfoo.c:7: error: impossible register
constraint in âmâoo.c:12: confused by earlier errors, bailing out
[hjl@gnu-5 tmp]$

on 32bit. This patch removes the ULL suffix in SVM MSR indexes.
Comment 1 H.J. Lu 2007-06-29 11:52:21 EDT
Created attachment 158219 [details]
A patch to remove ULL in SVM MSR indexes
Comment 2 Chuck Ebbert 2007-06-29 12:26:30 EDT
(In reply to comment #1)
> Created an attachment (id=158219) [edit]
> A patch to remove ULL in SVM MSR indexes

Patch is in 1.3240, thanks for testing.


Note You need to log in before you can comment on or make changes to this bug.