diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-06-27 23:40:27 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-06-27 23:40:27 +0200 |
commit | a29229ff20b2e1199e52099328902ae45a5f6f0d (patch) | |
tree | 4bddbd2b041ee4123394be6396aeaa02ffbb4b61 | |
parent | 0d490ef21c156907f3f26a6cdc00842f462a877a (diff) | |
download | gnumach-a29229ff20b2e1199e52099328902ae45a5f6f0d.tar.gz gnumach-a29229ff20b2e1199e52099328902ae45a5f6f0d.tar.bz2 gnumach-a29229ff20b2e1199e52099328902ae45a5f6f0d.zip |
Fix interrupt_processor prototype
* i386/i386/mp_desc.h [MULTIPROCESSOR] (interrupt_processor): Add
prototype.
* i386/intel/pmap.c [NCPUS > 1]: Include <i386/mp_desc.h>
-rw-r--r-- | i386/i386/mp_desc.h | 3 | ||||
-rw-r--r-- | i386/intel/pmap.c | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/i386/i386/mp_desc.h b/i386/i386/mp_desc.h index 9f963123..4a9cbdf6 100644 --- a/i386/i386/mp_desc.h +++ b/i386/i386/mp_desc.h @@ -77,6 +77,9 @@ extern struct real_descriptor *mp_gdt[NCPUS]; extern struct mp_desc_table * mp_desc_init(int); +extern void interrupt_processor(int cpu); + + #endif /* MULTIPROCESSOR */ extern void start_other_cpus(void); diff --git a/i386/intel/pmap.c b/i386/intel/pmap.c index c74717ae..69ab9cca 100644 --- a/i386/intel/pmap.c +++ b/i386/intel/pmap.c @@ -87,6 +87,10 @@ #include <i386at/biosmem.h> #include <i386at/model_dep.h> +#if NCPUS > 1 +#include <i386/mp_desc.h> +#endif + #ifdef MACH_PSEUDO_PHYS #define WRITE_PTE(pte_p, pte_entry) *(pte_p) = pte_entry?pa_to_ma(pte_entry):0; #else /* MACH_PSEUDO_PHYS */ |