From c94759ba7930feda649e73aabf710a4dcfcd0403 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Thu, 17 Jul 2008 00:28:06 +0000 Subject: 2008-07-15 Barry deFreese * i386/i386/model_dep.h: New header. * i386/i386at/model_dep.c: Include . * kern/debug.c: Include . * kern/mach_clock.c: Likewise. * kern/sched_prim.c: Likewise. * kern/startup.c: Likewise. * kern/machine.c: Likewise. (halt_cpu): Remove prototype. * vm/pmap.h (pmap_grab_page): Add prototype. --- ChangeLog | 9 +++++++++ i386/i386at/model_dep.c | 1 + kern/debug.c | 2 ++ kern/mach_clock.c | 1 + kern/machine.c | 5 +---- kern/sched_prim.c | 1 + kern/startup.c | 1 + vm/pmap.h | 9 +++++++++ 8 files changed, 25 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2220eab..e3116b3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -65,6 +65,15 @@ * device/tty.h (ttyinput_many, tty_cts, tty_get_status, tty_set_status, tty_flush, ttrstrt, ttstart, ttyclose, tty_portdeath, chario_init): Add prototypes. + * i386/i386/model_dep.h: New header. + * i386/i386at/model_dep.c: Include . + * kern/debug.c: Include . + * kern/mach_clock.c: Likewise. + * kern/sched_prim.c: Likewise. + * kern/startup.c: Likewise. + * kern/machine.c: Likewise. + (halt_cpu): Remove prototype. + * vm/pmap.h (pmap_grab_page): Add prototype. 2008-07-04 Samuel Thibault diff --git a/i386/i386at/model_dep.c b/i386/i386at/model_dep.c index fca4b94..d67f709 100644 --- a/i386/i386at/model_dep.c +++ b/i386/i386at/model_dep.c @@ -53,6 +53,7 @@ #include #include #include +#include /* Location of the kernel's symbol table. Both of these are 0 if none is available. */ diff --git a/kern/debug.c b/kern/debug.c index e81c6a2..2c9e761 100644 --- a/kern/debug.c +++ b/kern/debug.c @@ -33,6 +33,8 @@ #include +#include + extern void cnputc(); void Debugger() __attribute__ ((noreturn)); diff --git a/kern/mach_clock.c b/kern/mach_clock.c index 22c4a74..781101b 100644 --- a/kern/mach_clock.c +++ b/kern/mach_clock.c @@ -59,6 +59,7 @@ #include #include /* HZ */ #include +#include #if MACH_PCSAMPLE #include diff --git a/kern/machine.c b/kern/machine.c index 871801e..97181a8 100644 --- a/kern/machine.c +++ b/kern/machine.c @@ -51,6 +51,7 @@ #include #include #include /* for splsched */ +#include #include @@ -687,10 +688,6 @@ Restart_pset: * running on the processor's shutdown stack. */ -#ifdef __GNUC__ -extern __volatile__ void halt_cpu(); -#endif - #ifdef __GNUC__ __volatile__ #endif diff --git a/kern/sched_prim.c b/kern/sched_prim.c index db3c1f2..ec3245d 100644 --- a/kern/sched_prim.c +++ b/kern/sched_prim.c @@ -36,6 +36,7 @@ #include #include #include /* For def'n of splsched() */ +#include #include #include #include diff --git a/kern/startup.c b/kern/startup.c index 6468ae2..5eea5bc 100644 --- a/kern/startup.c +++ b/kern/startup.c @@ -52,6 +52,7 @@ #include #include #include +#include #include diff --git a/vm/pmap.h b/vm/pmap.h index 04ab4e9..66818a1 100644 --- a/vm/pmap.h +++ b/vm/pmap.h @@ -208,6 +208,15 @@ extern void pmap_copy(pmap_t, pmap_t, vm_offset_t, vm_size_t, extern kern_return_t pmap_attribute(); #endif /* pmap_attribute */ +/* + * Grab a physical page: + * the standard memory allocation mechanism + * during system initialization. + */ +extern vm_offset_t pmap_grab_page (void); + +extern boolean_t pmap_valid_page(vm_offset_t x); + /* * Routines defined as macros. */ -- cgit v1.2.3