bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 2/8] i386/i386/ldt.c: remove forward declaration


From: Marin Ramesa
Subject: [PATCH 2/8] i386/i386/ldt.c: remove forward declaration
Date: Wed, 11 Dec 2013 17:30:41 +0100

* 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(-)

diff --git a/i386/i386/ldt.c b/i386/i386/ldt.c
index 43b9efb..f9b6489 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
-- 
1.8.1.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]