bug-hurd
[Top][All Lists]
Advanced

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

[PATCH 09/18] kern/bootstrap.c: move struct definition to a header file


From: Marin Ramesa
Subject: [PATCH 09/18] kern/bootstrap.c: move struct definition to a header file
Date: Fri, 6 Dec 2013 16:29:51 +0100

* kern/bootstrap.c: Include kern/bootstrap.h.
(user_bootstrap_info): Move struct definition to kern/bootstrap.h.

---
 kern/bootstrap.c | 10 +---------
 kern/bootstrap.h |  8 ++++++++
 2 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/kern/bootstrap.c b/kern/bootstrap.c
index 41b02fe..b09e9cf 100644
--- a/kern/bootstrap.c
+++ b/kern/bootstrap.c
@@ -47,6 +47,7 @@
 #include <kern/task.h>
 #include <kern/thread.h>
 #include <kern/lock.h>
+#include <kern/bootstrap.h>
 #include <vm/vm_kern.h>
 #include <vm/vm_user.h>
 #include <vm/pmap.h>
@@ -701,15 +702,6 @@ $0 ${boot-args} ${host-port} ${device-port} ${root-device} 
$(task-create) $(task
        /*NOTREACHED*/
 }
 
-
-struct user_bootstrap_info
-{
-  struct multiboot_module *mod;
-  char **argv;
-  int done;
-  decl_simple_lock_data(,lock)
-};
-
 int
 boot_script_exec_cmd (void *hook, task_t task, char *path, int argc,
                      char **argv, char *strings, int stringlen)
diff --git a/kern/bootstrap.h b/kern/bootstrap.h
index b8ed8d9..702c678 100644
--- a/kern/bootstrap.h
+++ b/kern/bootstrap.h
@@ -19,6 +19,14 @@
 #ifndef _KERN_BOOTSTRAP_H_
 #define _KERN_BOOTSTRAP_H_
 
+struct user_bootstrap_info
+{
+  struct multiboot_module *mod;
+  char **argv;
+  int done;
+  decl_simple_lock_data(,lock)
+};
+
 extern void bootstrap_create(void);
 
 #endif /* _KERN_BOOTSTRAP_H_ */
-- 
1.8.1.4




reply via email to

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