Rev 2079 | Rev 2089 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2079 | Rev 2082 | ||
---|---|---|---|
Line 56... | Line 56... | ||
56 | */ |
56 | */ |
57 | static inline uint64_t cpuid_read(int n) |
57 | static inline uint64_t cpuid_read(int n) |
58 | { |
58 | { |
59 | uint64_t v; |
59 | uint64_t v; |
60 | 60 | ||
61 | __asm__ volatile ("mov %0 = cpuid[%1]\n" : "=r" (v) : "r" (n)); |
61 | asm volatile ("mov %0 = cpuid[%1]\n" : "=r" (v) : "r" (n)); |
62 | 62 | ||
63 | return v; |
63 | return v; |
64 | } |
64 | } |
65 | 65 | ||
66 | #endif |
66 | #endif |