[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
- [PATCH 01/18] ddb/db_output.c: remove forward declaration, Marin Ramesa, 2013/12/06
- [PATCH 04/18] i386/i386at/pic_isa.c: remove forward declaration, Marin Ramesa, 2013/12/06
- [PATCH 03/18] i386/i386at/model_dep.c: fix argument list, Marin Ramesa, 2013/12/06
- [PATCH 05/18] vm/vm_pageout.c: remove forward declarations, Marin Ramesa, 2013/12/06
- [PATCH 06/18] vm/vm_object.c: remove unused variable, Marin Ramesa, 2013/12/06
- [PATCH 07/18] vm/vm_map.c: use boolean instead of an int, Marin Ramesa, 2013/12/06
- [PATCH 02/18] i386/i386at/lpr.c: fix argument list, Marin Ramesa, 2013/12/06
- [PATCH 08/18] kern/boot_script.c: move struct definitions to a header file, Marin Ramesa, 2013/12/06
- [PATCH 09/18] kern/bootstrap.c: move struct definition to a header file,
Marin Ramesa <=
- [PATCH 10/18] kern/startup.c: use boolean values, Marin Ramesa, 2013/12/06
- [PATCH 12/18] kern/debug.c: fix implicit declaration of function, Marin Ramesa, 2013/12/06
- [PATCH 11/18] kern/exception.c: move struct definition to a header file, Marin Ramesa, 2013/12/06
- [PATCH 14/18] Fix initialization from incompatible pointer type, Marin Ramesa, 2013/12/06
- [PATCH 13/18] kern/machine.c: fix implicit declaration of function, Marin Ramesa, 2013/12/06