x86: replace literal numbers
authorJan Beulich <jbeulich@suse.com>
Fri, 28 Sep 2012 08:59:41 +0000 (10:59 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 28 Sep 2012 08:59:41 +0000 (10:59 +0200)
commitc7970c8c39736732bc964b62e17a4f1e386af7bb
tree3614ee7a8a6fe06fb1df60da33e16b08af323d37
parent1443c44067837f77cbd89fcac64cdde3fd337ef4
x86: replace literal numbers

In various cases, 256 was being used instead of NR_VECTORS or a derived
ARRAY_SIZE() expression. In one case (guest_has_trap_callback()), a
wrong (unrelated) constant was used instead of NR_VECTORS.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/arch/x86/domain.c
xen/arch/x86/traps.c
xen/arch/x86/x86_64/compat/traps.c