Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Dec 2002 14:02:58 -0800 (PST)
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 22897 for review
Message-ID:  <200212292202.gBTM2wuN060773@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200212292202.gBTM2wuN060773>