From a69d9580375fa2f43eb68970e292447310c88e98 Mon Sep 17 00:00:00 2001 From: Marin Ramesa Date: Wed, 11 Dec 2013 17:30:41 +0100 Subject: 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. --- i386/i386/ldt.c | 3 +-- i386/i386/locore.h | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'i386') 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 -- cgit v1.2.3