ia64/xen-unstable

view linux-2.6-xen-sparse/arch/ia64/xen/xensetup.S @ 9296:f85bb99187bf

Update interface documentation to include sched_op_new hypercall
and clean up the style a bit. Also clean up the sched_op_new
description in the sched.h public header.

Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Wed Mar 15 19:19:22 2006 +0100 (2006-03-15)
parents 88f97bb8f3ae
children cdecdd55f0d3 b736d3335641
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=cr.dcr
22 (isBP) movl r9=running_on_xen;;
23 extr.u r8=r8,63,1;;
24 cmp.ne p7,p0=r8,r0;;
25 (isBP) st4 [r9]=r8
26 (p7) movl r10=xen_ivt;;
27 (p7) mov cr.iva=r10
28 br.ret.sptk.many rp;;
29 END(early_xen_setup)
31 GLOBAL_ENTRY(is_running_on_xen)
32 movl r9=running_on_xen;;
33 ld4 r8=[r9]
34 br.ret.sptk.many rp;;
35 END(is_running_on_xen)