mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Replace the hardcoding of 255 as the clock interrupt vector with
CLOCK_VECTOR and define it as 254, not 255. Vector 255 is already in use as the AP wakeup vector on the HP rx2600. This needs to be made more dynamic. The likelyhood of vector 254 being in use is pretty small, but we already have code to assign vectors to IPIs (see sal.c) and it's preobably better to have a centralized "vector manager" that hands out vectors based on some imput (like priority).
This commit is contained in:
parent
ff29255673
commit
cbb095815a
4 changed files with 5 additions and 3 deletions
|
|
@ -193,7 +193,7 @@ cpu_initclocks()
|
|||
|
||||
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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -113,7 +113,7 @@ interrupt(u_int64_t vector, struct trapframe *framep)
|
|||
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++;
|
||||
|
|
|
|||
|
|
@ -120,7 +120,7 @@ ia64_ap_startup(void)
|
|||
|
||||
/* 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");
|
||||
|
|
|
|||
|
|
@ -11,6 +11,8 @@
|
|||
|
||||
#ifdef _KERNEL
|
||||
|
||||
#define CLOCK_VECTOR 254
|
||||
|
||||
extern int disable_rtc_set;
|
||||
extern int wall_cmos_clock;
|
||||
extern int adjkerntz;
|
||||
|
|
|
|||
Loading…
Reference in a new issue