[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
[PATCH 3/8] Cleanup of the copyin() and copyout() calls, Marin Ramesa, 2013/12/11
[PATCH 5/8] include/mach/mach4.defs (memory_object_create_proxy): fix passing from incompatible pointer type, Marin Ramesa, 2013/12/11
[PATCH 6/8] vm/vm_kern.c (kmem_submap): remove unnecessary cast, Marin Ramesa, 2013/12/11
[PATCH 7/8] vm/vm_resident.c (vm_page_print): remove unnecessary casts, Marin Ramesa, 2013/12/11