direct-io.hg

changeset 10118: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 299f048c4855
children 608ac00f4cfc
files linux-2.6-xen-sparse/arch/ia64/xen/xensetup.S
line diff
     1.1 --- a/linux-2.6-xen-sparse/arch/ia64/xen/xensetup.S	Mon May 15 13:42:18 2006 -0600
     1.2 +++ b/linux-2.6-xen-sparse/arch/ia64/xen/xensetup.S	Mon May 15 14:12:07 2006 -0600
     1.3 @@ -18,12 +18,13 @@ running_on_xen:
     1.4  
     1.5  	.text
     1.6  GLOBAL_ENTRY(early_xen_setup)
     1.7 -	mov r8=cr.dcr
     1.8 +	mov r8=ar.rsc		// Initialized in head.S
     1.9  (isBP)	movl r9=running_on_xen;;
    1.10 -	extr.u r8=r8,63,1;;
    1.11 -	cmp.ne p7,p0=r8,r0;;
    1.12 +	extr.u r8=r8,2,2;;	// Extract pl fields
    1.13 +	cmp.ne p7,p0=r8,r0;;	// p7: running on xen 
    1.14 +(p7)	mov r8=1		// booleanize.
    1.15 +(p7)	movl r10=xen_ivt;;
    1.16  (isBP)	st4 [r9]=r8
    1.17 -(p7)	movl r10=xen_ivt;;
    1.18  (p7)	mov cr.iva=r10
    1.19  	br.ret.sptk.many rp;;
    1.20  END(early_xen_setup)