[U-Boot] [PATCH] powerpc/bootm: Flush ramdisk and device tree	image when booting on MP
    Kumar Gala 
    galak at kernel.crashing.org
       
    Wed Dec  7 20:30:27 CET 2011
    
    
  
On Dec 7, 2011, at 10:17 AM, Tabi Timur-B04825 wrote:
> On Wed, Dec 7, 2011 at 8:42 AM, Kumar Gala <galak at kernel.crashing.org> wrote:
> 
>> +       if (flag & BOOTM_STATE_OS_PREP) {
>> +               boot_prep_linux(images);
>>                return 0;
>> +       }
>> 
>>        if (flag & BOOTM_STATE_OS_GO) {
>>                boot_jump_linux(images);
>>                return 0;
>>        }
>> 
>> +       boot_prep_linux(images);
> 
> Why are we calling boot_prep_linux(images) when "flag &
> BOOTM_STATE_OS_PREP" is zero? If we don't want the OS to be PREPped,
> then why call a function named boot_prep_linux()?
We call it in both cases, one is for 'normal' bootm command the other is for 'bootm subcommand'.
- k
    
    
More information about the U-Boot
mailing list