[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 29/68] i386/i386at/pic_isa.c: remove forward declaration
From: |
Marin Ramesa |
Subject: |
[PATCH 29/68] i386/i386at/pic_isa.c: remove forward declaration |
Date: |
Fri, 29 Nov 2013 22:53:54 +0100 |
* i386/i386at/pic_isa.c: Include kern/mach_clock.h.
(hardclock): Remove forward declaration.
* kern/mach_clock.h: Include machine/thread.h.
(hardclock): Add prototype.
---
i386/i386at/pic_isa.c | 2 +-
kern/mach_clock.h | 9 ++++++++-
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/i386/i386at/pic_isa.c b/i386/i386at/pic_isa.c
index e48fb50..8afd93e 100644
--- a/i386/i386at/pic_isa.c
+++ b/i386/i386at/pic_isa.c
@@ -29,9 +29,9 @@
#include <i386/pic.h>
#include <i386/fpu.h>
#include <i386at/kd.h>
+#include <kern/mach_clock.h>
/* These interrupts are always present */
-extern void hardclock();
void (*ivect[NINTR])() = {
/* 00 */ hardclock, /* always */
diff --git a/kern/mach_clock.h b/kern/mach_clock.h
index 72189af..94e0a11 100644
--- a/kern/mach_clock.h
+++ b/kern/mach_clock.h
@@ -29,7 +29,7 @@
#include <mach/time_value.h>
#include <kern/host.h>
#include <kern/queue.h>
-
+#include <machine/thread.h>
/* Timers in kernel. */
extern unsigned long elapsed_ticks; /* number of ticks elapsed since bootup
*/
@@ -107,4 +107,11 @@ extern boolean_t untimeout(timer_func_t *fcn, void *param);
extern int timeopen(void);
extern int timeclose(void);
+void hardclock(
+ int iunit,
+ int old_ipl,
+ int irq,
+ char * ret_addr,
+ struct i386_interrupt_state *regs);
+
#endif /* _KERN_MACH_CLOCK_H_ */
--
1.8.1.4
- Re: [PATCH 19/68] i386/i386/ldt.c: remove useless forward declaration without definition, (continued)
- [PATCH 21/68] kern: new header file exception.h, Marin Ramesa, 2013/11/29
- [PATCH 20/68] i386/i386/pcb.c: remove forward declarations, Marin Ramesa, 2013/11/29
- [PATCH 22/68] kern/exception.c: remove forward declarations, Marin Ramesa, 2013/11/29
- [PATCH 23/68] i386/i386at/autoconf.c, com.c, lpr.c: remove forward declarations, Marin Ramesa, 2013/11/29
- [PATCH 25/68] i386/i386at/kd.c: remove forward declarations, Marin Ramesa, 2013/11/29
- [PATCH 24/68] i386/i386at/conf.c: remove forward declarations, Marin Ramesa, 2013/11/29
- [PATCH 26/68] i386/i386at/kd_event.c: remove forward declarations, Marin Ramesa, 2013/11/29
- [PATCH 27/68] i386/i386at/kd_mouse.c: remove forward declarations, Marin Ramesa, 2013/11/29
- [PATCH 28/68] i386/i386at: remove forward declarations, Marin Ramesa, 2013/11/29
- [PATCH 29/68] i386/i386at/pic_isa.c: remove forward declaration,
Marin Ramesa <=
- [PATCH 30/68] i386/intel/pmap.c: remove forward declarations, Marin Ramesa, 2013/11/29
- [PATCH 32/68] ipc/ipc_table.c: remove forward declaration, Marin Ramesa, 2013/11/29
- [PATCH 31/68] ipc/ipc_kmsg.c: remove forward declarations, Marin Ramesa, 2013/11/29
- [PATCH 33/68] ipc/mach_msg.c: remove forward declarations, Marin Ramesa, 2013/11/29
- [PATCH 34/68] kern/bootstrap.c: remove forward declarations, Marin Ramesa, 2013/11/29
- [PATCH 35/68] kern/debug.c: remove forward declaration, Marin Ramesa, 2013/11/29
- [PATCH 36/68] kern/ipc_mig.c: remove forward declarations, Marin Ramesa, 2013/11/29
- [PATCH 37/68] kern/processor.c: remove forward declarations, Marin Ramesa, 2013/11/29
- [PATCH 39/68] kern/startup.c: remove forward declarations, Marin Ramesa, 2013/11/29