summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Stuehler <uwe@cvs.openbsd.org>2006-03-07 22:12:47 +0000
committerUwe Stuehler <uwe@cvs.openbsd.org>2006-03-07 22:12:47 +0000
commit1a73fef118e273170531ddee5b3455bb725f7f99 (patch)
treefa88cd1b4623e6b42f2107ed952f4d77a7a3e66b
parent19c50099862177f25e3e432a933205babda9c901 (diff)
Add the proper constant to replace a magic interrupt number.
-rw-r--r--sys/arch/arm/xscale/pxa2x0_clock.c4
-rw-r--r--sys/arch/arm/xscale/pxa2x0reg.h3
2 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/arm/xscale/pxa2x0_clock.c b/sys/arch/arm/xscale/pxa2x0_clock.c
index 83596b80fd2..e281794cd3c 100644
--- a/sys/arch/arm/xscale/pxa2x0_clock.c
+++ b/sys/arch/arm/xscale/pxa2x0_clock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pxa2x0_clock.c,v 1.3 2005/12/22 23:23:51 drahn Exp $ */
+/* $OpenBSD: pxa2x0_clock.c,v 1.4 2006/03/07 22:12:46 uwe Exp $ */
/*
* Copyright (c) 2005 Dale Rahn <drahn@openbsd.org>
@@ -231,7 +231,7 @@ cpu_initclocks()
pxaost_sc->sc_clock_count = pxaost_sc->sc_clock_step;
pxaost_sc->sc_statclock_count = CLK4_TIMER_FREQUENCY / stathz;
- pxa2x0_intr_establish(7, IPL_CLOCK, doclockintr, 0, "clock");
+ pxa2x0_intr_establish(PXA2X0_INT_OST, IPL_CLOCK, doclockintr, 0, "clock");
clk = bus_space_read_4(pxaost_sc->sc_iot, pxaost_sc->sc_ioh, OST_OSCR4);
diff --git a/sys/arch/arm/xscale/pxa2x0reg.h b/sys/arch/arm/xscale/pxa2x0reg.h
index 8797f521ec9..5418d8b4eac 100644
--- a/sys/arch/arm/xscale/pxa2x0reg.h
+++ b/sys/arch/arm/xscale/pxa2x0reg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pxa2x0reg.h,v 1.25 2005/12/22 18:45:47 deraadt Exp $ */
+/* $OpenBSD: pxa2x0reg.h,v 1.26 2006/03/07 22:12:46 uwe Exp $ */
/* $NetBSD: pxa2x0reg.h,v 1.4 2003/06/11 20:43:01 scw Exp $ */
/*
@@ -136,6 +136,7 @@
*/
#define PXA2X0_INT_USBH2 2 /* USB host (all other events) */
#define PXA2X0_INT_USBH1 3 /* USB host (OHCI) */
+#define PXA2X0_INT_OST 7 /* OS timers */
#define PXA2X0_INT_GPIO0 8
#define PXA2X0_INT_GPIO1 9
#define PXA2X0_INT_GPION 10 /* IRQ from GPIO[2..80] */