Rev 2071 | Rev 3146 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2071 | Rev 2082 | ||
---|---|---|---|
Line 67... | Line 67... | ||
67 | return 0; |
67 | return 0; |
68 | } |
68 | } |
69 | 69 | ||
70 | uint64_t current_mid; |
70 | uint64_t current_mid; |
71 | 71 | ||
72 | __asm__ volatile ("ldxa [%1] %2, %0\n" : "=r" (current_mid) : "r" (0), "i" (ASI_UPA_CONFIG)); |
72 | asm volatile ("ldxa [%1] %2, %0\n" : "=r" (current_mid) : "r" (0), "i" (ASI_UPA_CONFIG)); |
73 | current_mid >>= UPA_CONFIG_MID_SHIFT; |
73 | current_mid >>= UPA_CONFIG_MID_SHIFT; |
74 | current_mid &= UPA_CONFIG_MID_MASK; |
74 | current_mid &= UPA_CONFIG_MID_MASK; |
75 | 75 | ||
76 | int cpus; |
76 | int cpus; |
77 | 77 |