source:
trunk/packages/xen-common/xen-common/linux-2.6-xen-sparse/arch/ia64/xen/xenhpski.c
@
34
Last change on this file since 34 was 34, checked in by hartmans, 17 years ago | |
---|---|
File size: 392 bytes |
Line | |
---|---|
1 | |
2 | extern unsigned long xen_get_cpuid(int); |
3 | |
4 | int |
5 | running_on_sim(void) |
6 | { |
7 | int i; |
8 | long cpuid[6]; |
9 | |
10 | for (i = 0; i < 5; ++i) |
11 | cpuid[i] = xen_get_cpuid(i); |
12 | if ((cpuid[0] & 0xff) != 'H') return 0; |
13 | if ((cpuid[3] & 0xff) != 0x4) return 0; |
14 | if (((cpuid[3] >> 8) & 0xff) != 0x0) return 0; |
15 | if (((cpuid[3] >> 16) & 0xff) != 0x0) return 0; |
16 | if (((cpuid[3] >> 24) & 0x7) != 0x7) return 0; |
17 | return 1; |
18 | } |
19 |
Note: See TracBrowser
for help on using the repository browser.