diff options
author | Marin Ramesa <mpr@hi.t-com.hr> | 2013-12-11 17:30:41 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-12-15 19:54:51 +0100 |
commit | a69d9580375fa2f43eb68970e292447310c88e98 (patch) | |
tree | 9ab93559d59d04494beb5daa9027cd9985eb5f60 /i386 | |
parent | d4d560090216ba3028fab57860dc90ed3d283368 (diff) |
i386/i386/ldt.c: remove forward declaration
* i386/i386/ldt.c (syscall): Remove forward declaration.
Include locore.h.
* i386/i386/locore.h (syscall): Add prototype.
Diffstat (limited to 'i386')
-rw-r--r-- | i386/i386/ldt.c | 3 | ||||
-rw-r--r-- | i386/i386/locore.h | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/i386/i386/ldt.c b/i386/i386/ldt.c index a5e89f2..0250ee2 100644 --- a/i386/i386/ldt.c +++ b/i386/i386/ldt.c @@ -36,8 +36,7 @@ #include "seg.h" #include "gdt.h" #include "ldt.h" - -extern int syscall(); +#include "locore.h" #ifdef MACH_PV_DESCRIPTORS /* It is actually defined in xen_boothdr.S */ diff --git a/i386/i386/locore.h b/i386/i386/locore.h index bfd1317..6948f72 100644 --- a/i386/i386/locore.h +++ b/i386/i386/locore.h @@ -56,6 +56,8 @@ extern int inst_fetch (int eip, int cs); extern void cpu_shutdown (void); +extern int syscall (void); + extern unsigned int cpu_features[1]; #define CPU_FEATURE_FPU 0 |