ia64/xen-unstable

view tools/misc/fakei386xen @ 9488:0a6f5527ca4b

[IA64] set itv handoff as masked and enable reading irr[0-3]

Set initial vcpu itv handoff state to mask the timer vector.
This seems to match hardware and makes logical sense from a
spurious interrupt perspective. Enable vcpu_get_irr[0-3]
functions as they seem to work and have the proper backing.
This enables the check_sal_cache_flush() in arch/ia64/kernel.sal.c
to work unmodified, allowing us to remove the Xen changes from
the file (and thus the file from the sparse tree).

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
author awilliam@xenbuild.aw
date Tue Apr 04 09:39:45 2006 -0600 (2006-04-04)
parents fc1bb7d45e8c
children
line source
1 #!/bin/bash
3 cln () {
4 while [ $# -gt 0 ]; do
5 (
6 test -f "$1" || { echo "$1: No such file or directory" 1>&2; exit 1; }
7 { cp $1 cln$$ && rm $1 && mv cln$$ $1; } || { rm -f cln$$; exit 1; }
8 )
9 shift
10 done
11 }
14 for i in `find include/asm-xen arch/xen -type l | xargs ls -l | egrep '../(asm-)?i386/' | awk '{print $9}'`
15 do
16 echo $i
17 cln $i
18 done
20 mv include/asm-i386 include/asm-Xi386
21 mv include/asm-xen include/asm-i386
22 ln -s asm-i386 include/asm-xen
23 rm include/asm
24 ln -s asm-i386 include/asm
25 mv arch/i386 arch/Xi386
26 mv arch/xen arch/i386
27 ln -s i386 arch/xen
29 mv Makefile XMakefile
30 #sed -e 's/^EXTRAVERSION =.*/EXTRAVERSION = -xen/' <XMakefile >Makefile
31 echo ARCH=i386 >Makefile ; cat XMakefile >>Makefile