Quick Search:

View

Revision:
Expand:  
Changeset: MAIN:plunky:20140606191443

Diff

Diff from 1.1 to:

Annotations

Annotate by Age | Author | Mixed | None
/fisheye/browse/pcc/pcc-tests/regress/jira/PCC-197.c

Annotated File View

plunky
1.1
1 /*
2  * PCC-197
3  * amd64: unsupported xasm constraint 'A'
4  */
5
6 #ifdef __amd64__
7 typedef unsigned int u_int;
8 typedef unsigned long long u_int64_t;
9
10 #define OPTERON_MSR_PASSCODE 0x9c5a203a
11
12 static __inline u_int64_t
13 rdmsr_locked(u_int msru_int code)
14 {
15         u_int64_t rv;
16
17         __asm volatile("rdmsr"  : "=A" (rv)
18                                 : "c" (msr), "D" (code));
19
20         return (rv);
21 }
22
23 void
24 amd64_errata_testmsr(void)
25 {
26         u_int e_data1;
27         u_int64_t val = rdmsr_locked(e_data1OPTERON_MSR_PASSCODE);
28 }
29 #endif
30
31 int main(int argcchar *argv[]) { return 0; }
FishEye: Open Source License registered to PCC.
Your maintenance has expired. You can renew your license at http://www.atlassian.com/fisheye/renew
Atlassian FishEye, CVS analysis. (Version:1.6.3 Build:build-336 2008-11-04) - Administration - Page generated 2014-08-28 01:03 +0200