From owner-p4-projects Sun Dec 29 14: 3: 3 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id A960437B405; Sun, 29 Dec 2002 14:03:00 -0800 (PST) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3993037B401 for ; Sun, 29 Dec 2002 14:03:00 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id E203243EA9 for ; Sun, 29 Dec 2002 14:02:59 -0800 (PST) (envelope-from marcel@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id gBTM2xfh060792 for ; Sun, 29 Dec 2002 14:02:59 -0800 (PST) (envelope-from marcel@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id gBTM2wuN060773 for perforce@freebsd.org; Sun, 29 Dec 2002 14:02:58 -0800 (PST) Date: Sun, 29 Dec 2002 14:02:58 -0800 (PST) Message-Id: <200212292202.gBTM2wuN060773@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to marcel@freebsd.org using -f From: Marcel Moolenaar Subject: PERFORCE change 22897 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG http://perforce.freebsd.org/chv.cgi?CH=22897 Change 22897 by marcel@marcel_nfs on 2002/12/29 14:02:13 Don't hardcode 255 for the clock interrupt vector in multiple files. Hardcode it as 254 in a single header for now. 255 can be (and is) used for the AP wakeup vector. This is another thing we really need to make dynamic. Affected files ... .. //depot/projects/ia64/sys/ia64/ia64/clock.c#12 edit .. //depot/projects/ia64/sys/ia64/ia64/interrupt.c#19 edit .. //depot/projects/ia64/sys/ia64/ia64/mp_machdep.c#25 edit .. //depot/projects/ia64/sys/ia64/include/clock.h#5 edit Differences ... ==== //depot/projects/ia64/sys/ia64/ia64/clock.c#12 (text+ko) ==== @@ -193,7 +193,7 @@ itm_reload = (itc_frequency + hz/2) / hz; ia64_set_itm(ia64_get_itc() + itm_reload); - ia64_set_itv(255); /* highest priority class */ + ia64_set_itv(CLOCK_VECTOR); /* highest priority class */ stathz = 128; } ==== //depot/projects/ia64/sys/ia64/ia64/interrupt.c#19 (text+ko) ==== @@ -113,7 +113,7 @@ printf("ExtINT interrupt: vector=%ld\n", vector); } - if (vector == 255) {/* clock interrupt */ + if (vector == CLOCK_VECTOR) {/* clock interrupt */ /* CTR0(KTR_INTR, "clock interrupt"); */ cnt.v_intr++; ==== //depot/projects/ia64/sys/ia64/ia64/mp_machdep.c#25 (text+ko) ==== @@ -120,7 +120,7 @@ /* kick off the clock on this AP */ ia64_set_itm(ia64_get_itc() + itm_reload); - ia64_set_itv(255); + ia64_set_itv(CLOCK_VECTOR); ia64_set_tpr(0); cpu_throw(); panic("ia64_ap_startup: cpu_throw() returned"); ==== //depot/projects/ia64/sys/ia64/include/clock.h#5 (text+ko) ==== @@ -11,6 +11,8 @@ #ifdef _KERNEL +#define CLOCK_VECTOR 254 + extern int disable_rtc_set; extern int wall_cmos_clock; extern int adjkerntz; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message