diff options
author | Flavio Cruz <flaviocruz@gmail.com> | 2023-01-24 01:44:23 -0500 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-01-25 02:06:29 +0100 |
commit | b379d5afdf65cce11426ab0349a3778b3fd632f5 (patch) | |
tree | 806d1d45fad3b713bd3e967ccf39847db427aa55 /i386/intel/pmap.h | |
parent | 2281d4ba935f2b6c06d2ee0e5258c41c78bd8d39 (diff) | |
download | gnumach-b379d5afdf65cce11426ab0349a3778b3fd632f5.tar.gz gnumach-b379d5afdf65cce11426ab0349a3778b3fd632f5.tar.bz2 gnumach-b379d5afdf65cce11426ab0349a3778b3fd632f5.zip |
Fix several warnings for -Wmissing-prototypes (part 2)
* i386/i386/io_map.c: code is unused.
* i386/i386/io_perm.c: include mig prototypes.
* i386/i386/mp_desc.c: Deleted interrupt_stack_alloc since it is not
used.
* i386/i386/seg.h: Moved descriptor structs to i386/include/mach/i386/mach_i386_types.h
as that represents the interface types for RPCs.
Defined aliases for real_descriptor since those are used by the i386 RPCs. Inlined many
functions here too and removed seg.c.
* i386/i386/seg.c: Removed. All the functions are inline now.
* i386/i386/trap.c: Use static.
* i386/i386/trap.h: Define missing prototypes.
* i386/i386/tss.h: Use static inline for ltr.
* i386/i386/user_ldt.c: Include mig prototypes.
* i386/include/mach/i386/mach_i386.defs: Define real_descriptor_t types
since those are used in the RPC definition. Now both prototypes and
definitions will match.
* i386/include/mach/i386/mach_i386_types.h: Move struct descriptor
from seg.h since we need those for the RPC interfaces. Removed include
of io_perm.h since it generates circular includes otherwise.
* i386/intel/pmap.c: pmap_map is unused. Added static qualifier for
several functions.
* i386/intel/pmap.h: pmap_update_interrupt declared for non-SMP and SMP.
Message-Id: <Y89+R2VekOQK4IUo@jupiter.lan>
Diffstat (limited to 'i386/intel/pmap.h')
-rw-r--r-- | i386/intel/pmap.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/i386/intel/pmap.h b/i386/intel/pmap.h index bad640c1..d6bf85fb 100644 --- a/i386/intel/pmap.h +++ b/i386/intel/pmap.h @@ -268,11 +268,12 @@ boolean_t cpu_update_needed[NCPUS]; */ void process_pmap_updates(pmap_t); -void pmap_update_interrupt(void); extern pmap_t kernel_pmap; #endif /* NCPUS > 1 */ +void pmap_update_interrupt(void); + /* * Machine dependent routines that are used only for i386/i486. */ |