|
@@ -119,8 +119,7 @@ multiboot_build_module_list ( struct image *image,
|
119
|
119
|
module->mod_start = user_to_phys ( module_image->data, 0 );
|
120
|
120
|
module->mod_end = user_to_phys ( module_image->data,
|
121
|
121
|
module_image->len );
|
122
|
|
- if ( image->cmdline )
|
123
|
|
- module->string = virt_to_phys ( image->cmdline );
|
|
122
|
+ module->string = virt_to_phys ( image->cmdline );
|
124
|
123
|
|
125
|
124
|
/* We promise to page-align modules, so at least check */
|
126
|
125
|
assert ( ( module->mod_start & 0xfff ) == 0 );
|
|
@@ -154,11 +153,9 @@ static int multiboot_exec ( struct image *image ) {
|
154
|
153
|
mbinfo.mmap_addr = virt_to_phys ( &mbmemmap[0].base_addr );
|
155
|
154
|
mbinfo.flags |= ( MBI_FLAG_MEM | MBI_FLAG_MMAP );
|
156
|
155
|
|
157
|
|
- /* Set command line, if present */
|
158
|
|
- if ( image->cmdline ) {
|
159
|
|
- mbinfo.cmdline = virt_to_phys ( image->cmdline );
|
160
|
|
- mbinfo.flags |= MBI_FLAG_CMDLINE;
|
161
|
|
- }
|
|
156
|
+ /* Set command line */
|
|
157
|
+ mbinfo.cmdline = virt_to_phys ( image->cmdline );
|
|
158
|
+ mbinfo.flags |= MBI_FLAG_CMDLINE;
|
162
|
159
|
|
163
|
160
|
/* Construct module list */
|
164
|
161
|
num_modules = multiboot_build_module_list ( image, NULL );
|