ia64/xen-unstable

view linux-2.6-xen-sparse/arch/ia64/xen/xensetup.S @ 10010:cdecdd55f0d3

[IA64] Get rid of dcr bit 63 trick.

(Use ar.rsc.pl instead).

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
author awilliam@xenbuild.aw
date Mon May 15 14:12:07 2006 -0600 (2006-05-15)
parents 88f97bb8f3ae
children 72c5d8206d48
line source
1 /*
2 * Support routines for Xen
3 *
4 * Copyright (C) 2005 Dan Magenheimer <dan.magenheimer@hp.com>
5 */
7 #include <linux/config.h>
8 #include <asm/processor.h>
9 #include <asm/asmmacro.h>
11 .data
12 .align 8
13 .globl running_on_xen
14 running_on_xen:
15 data4 0
17 #define isBP p3 // are we the Bootstrap Processor?
19 .text
20 GLOBAL_ENTRY(early_xen_setup)
21 mov r8=ar.rsc // Initialized in head.S
22 (isBP) movl r9=running_on_xen;;
23 extr.u r8=r8,2,2;; // Extract pl fields
24 cmp.ne p7,p0=r8,r0;; // p7: running on xen
25 (p7) mov r8=1 // booleanize.
26 (p7) movl r10=xen_ivt;;
27 (isBP) st4 [r9]=r8
28 (p7) mov cr.iva=r10
29 br.ret.sptk.many rp;;
30 END(early_xen_setup)
32 GLOBAL_ENTRY(is_running_on_xen)
33 movl r9=running_on_xen;;
34 ld4 r8=[r9]
35 br.ret.sptk.many rp;;
36 END(is_running_on_xen)