diff --git a/arch/amd64/boot.c b/arch/amd64/boot.c index aa4e779..0e1fe7e 100644 --- a/arch/amd64/boot.c +++ b/arch/amd64/boot.c @@ -14,8 +14,6 @@ int linux_load(struct sys_info *, const char *filename, const char *cmdline); void boot(void); -struct sys_info sys_info; - void boot(void) { char *path=pop_fstr_copy(), *param; diff --git a/arch/amd64/openbios.c b/arch/amd64/openbios.c index 05a5171..df43943 100644 --- a/arch/amd64/openbios.c +++ b/arch/amd64/openbios.c @@ -52,7 +52,6 @@ arch_init( void ) int openbios(void) { - extern struct sys_info sys_info; #ifdef CONFIG_DEBUG_CONSOLE #ifdef CONFIG_DEBUG_CONSOLE_SERIAL uart_init(CONFIG_SERIAL_PORT, CONFIG_SERIAL_SPEED); diff --git a/arch/sparc32/boot.c b/arch/sparc32/boot.c index cc04349..78a816f 100644 --- a/arch/sparc32/boot.c +++ b/arch/sparc32/boot.c @@ -16,7 +16,6 @@ #include "openprom.h" #include "boot.h" -struct sys_info sys_info; uint32_t kernel_image; uint32_t kernel_size; uint32_t qemu_cmdline; diff --git a/arch/sparc64/boot.c b/arch/sparc64/boot.c index c2d2972..e471259 100644 --- a/arch/sparc64/boot.c +++ b/arch/sparc64/boot.c @@ -14,7 +14,6 @@ #include "libopenbios/forth_load.h" #include "boot.h" -struct sys_info sys_info; uint64_t kernel_image; uint64_t kernel_size; uint64_t qemu_cmdline; diff --git a/arch/x86/boot.c b/arch/x86/boot.c index 41aec38..d2238ac 100644 --- a/arch/x86/boot.c +++ b/arch/x86/boot.c @@ -18,7 +18,6 @@ #include "libopenbios/forth_load.h" #include "boot.h" -struct sys_info sys_info; void *boot_notes = NULL; static int try_path(const char *path, char *param) diff --git a/libopenbios/load.c b/libopenbios/load.c index 24ef4c9..41b3a00 100644 --- a/libopenbios/load.c +++ b/libopenbios/load.c @@ -33,6 +33,8 @@ #endif +struct sys_info sys_info; + void load(ihandle_t dev) { /* Invoke the loaders on the specified device */