diff options
author | Toomas Soome <tsoome@me.com> | 2018-07-09 14:53:03 +0300 |
---|---|---|
committer | Dan McDonald <danmcd@joyent.com> | 2018-09-10 09:01:14 -0400 |
commit | 6649cbcc75f82cb221ebe2ee6f5afc2001249848 (patch) | |
tree | 15c637ed11380cd3f247c482e4de9ce89d071e44 /usr/src | |
parent | c9a7c757006f9d80806dedf907c3e03ab5ae04e4 (diff) | |
download | illumos-joyent-6649cbcc75f82cb221ebe2ee6f5afc2001249848.tar.gz |
9784 loader: multiboot.c has unused variables and function
Reviewed by: Igor Kozhukhov <igor@dilos.org>
Reviewed by: Gergő Mihály Doma <domag02@gmail.com>
Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src')
-rw-r--r-- | usr/src/boot/sys/boot/i386/libi386/multiboot.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/usr/src/boot/sys/boot/i386/libi386/multiboot.c b/usr/src/boot/sys/boot/i386/libi386/multiboot.c index be67318e4c..d44fa0a398 100644 --- a/usr/src/boot/sys/boot/i386/libi386/multiboot.c +++ b/usr/src/boot/sys/boot/i386/libi386/multiboot.c @@ -90,20 +90,6 @@ num_modules(struct preloaded_file *kfp) return (mod_num); } -static vm_offset_t -max_addr(void) -{ - struct preloaded_file *fp; - vm_offset_t addr = 0; - - for (fp = file_findfile(NULL, NULL); fp != NULL; fp = fp->f_next) { - if (addr < (fp->f_addr + fp->f_size)) - addr = fp->f_addr + fp->f_size; - } - - return (addr); -} - static int multiboot_loadfile(char *filename, u_int64_t dest, struct preloaded_file **result) @@ -244,8 +230,7 @@ static int multiboot_exec(struct preloaded_file *fp) { struct preloaded_file *mfp; - vm_offset_t module_start, metadata_size; - vm_offset_t modulep, kernend, entry; + vm_offset_t entry; struct file_metadata *md; struct multiboot_info *mb_info = NULL; struct multiboot_mod_list *mb_mod = NULL; @@ -460,7 +445,6 @@ multiboot_obj_loadfile(char *filename, u_int64_t dest, struct preloaded_file **result) { struct preloaded_file *mfp, *kfp, *rfp; - struct kernel_module *kmp; int error, mod_num; /* See if there's a aout multiboot kernel loaded */ |