ia64/xen-unstable

view tools/check/chk @ 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 06d84bf87159
children 0e22ecd169a0
line source
1 #!/bin/bash
3 function usage {
4 echo "Usage:"
5 echo "\t$0 [build|install|clean]"
6 echo
7 echo "Check suitability for Xen build or install."
8 echo "Exit with 0 if OK, 1 if not."
9 echo "Prints only failed tests."
10 echo
11 echo "Calling with 'clean' removes generated files."
12 exit 1
13 }
15 export PATH=${PATH}:/sbin:/usr/sbin
17 case $1 in
18 build)
19 check="CHECK-BUILD"
20 ;;
21 install)
22 check="CHECK-INSTALL"
23 ;;
24 clean)
25 exit 0
26 ;;
27 *)
28 usage
29 ;;
30 esac
32 failed=0
34 echo "Xen ${check} " $(date)
35 for f in check_* ; do
36 case $f in
37 *~)
38 continue
39 ;;
40 *)
41 ;;
42 esac
43 if ! [ -x $f ] ; then
44 continue
45 fi
46 if ! grep -q ${check} $f ; then
47 continue
48 fi
49 echo -n "Checking $f: "
50 if ./$f 2>&1 ; then
51 echo OK
52 else
53 failed=1
54 fi
55 done
57 exit $failed