From abefb12367d56fa5318a301170fde7208f20ff5e Mon Sep 17 00:00:00 2001 From: peter Date: Sat, 10 Aug 2002 03:36:42 +0000 Subject: My quad cpu itanium2 box has its cpu's numbered with a lid starting at 192. Masking off bottom 4 bits is not very good here. --- sys/ia64/ia64/sapic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/ia64') diff --git a/sys/ia64/ia64/sapic.c b/sys/ia64/ia64/sapic.c index 208fd58..0830a82 100644 --- a/sys/ia64/ia64/sapic.c +++ b/sys/ia64/ia64/sapic.c @@ -138,8 +138,8 @@ sapic_enable(struct sapic *sa, int input, int vector, u_int64_t lid = ia64_get_lid(); bzero(&rte, sizeof(rte)); - rte.rte_destination_id = (lid >> 24) & 15; - rte.rte_destination_eid = (lid >> 16) & 15; + rte.rte_destination_id = (lid >> 24) & 255; + rte.rte_destination_eid = (lid >> 16) & 255; rte.rte_trigger_mode = trigger_mode; rte.rte_polarity = polarity; rte.rte_delivery_mode = 0; /* fixed */ -- cgit v1.1