diff options
author | Marin Ramesa <mpr@hi.t-com.hr> | 2013-12-09 23:57:16 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-12-10 00:30:16 +0100 |
commit | fe7b4a8bbfd41c90f16ab4b1bcd82babb811c7a7 (patch) | |
tree | 13b484d17a97ed408764761653a2318501906f06 /i386/i386 | |
parent | e95d650716ec19e450baf1249d4d21025a8a289f (diff) |
i386: move prototypes to fix implicit declaration of function
This fixes the implicit declarations in kern/machine.c and kern/debug.c.
* i386/i386/model_dep.h (halt_cpu, halt_all_cpus): Add prototypes.
* i386/i386at/model_dep.h (halt_cpu, halt_all_cpus): Remove prototypes.
Diffstat (limited to 'i386/i386')
-rw-r--r-- | i386/i386/model_dep.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/i386/i386/model_dep.h b/i386/i386/model_dep.h index c45b756..ab2738f 100644 --- a/i386/i386/model_dep.h +++ b/i386/i386/model_dep.h @@ -41,6 +41,16 @@ extern void resettodr (void); extern void startrtclock (void); /* + * Halt a cpu. + */ +extern void halt_cpu (void) __attribute__ ((noreturn)); + +/* + * Halt the system or reboot. + */ +extern void halt_all_cpus (boolean_t reboot) __attribute__ ((noreturn)); + +/* * More-specific code provides these; * they indicate the total extent of physical memory * that we know about and might ever have to manage. |