[patch 24/33] powerpc: Correct __secondary_hold comment

Geoff Levand geoffrey.levand at am.sony.com
Tue Jun 19 08:47:32 EST 2007


Milton Miller wrote:
> On Sat Jun 16 08:06:23 EST 2007, Geoff Levand wrote:
>> Remove references to pSeries and OpenFirmware in the __secondary_hold
>> usage comment.  __secondary_hold is a generic routine and can be used
>> by other platforms.
> 
> The comment is correct, just incomplete.  Well, the part that you 
> changed anyways.  How about changing the subject to:
> 
> Expand comment for other uses of __secondary_hold.
> 
>>
>> Signed-off-by: Geoff Levand <geoffrey.levand at am.sony.com>
>> ---
>>  arch/powerpc/kernel/head_64.S |    4 ++--
>>  1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> --- a/arch/powerpc/kernel/head_64.S
>> +++ b/arch/powerpc/kernel/head_64.S
>> @@ -103,8 +103,8 @@ __secondary_hold_acknowledge:
>>
>>         . = 0x60
>>  /*
>> - * The following code is used on pSeries to hold secondary processors
>> - * in a spin loop after they have been freed from OpenFirmware, but
>> + * The following code is used to hold secondary processors
>> + * in a spin loop after they have entered the kernel, but
>>   * before the bulk of the kernel has been relocated.  This code
>>   * is relocated to physical address 0x60 before prom_init is run.
>>   * All of it must fit below the first exception vector at 0x100.
>>
> 
> I don't like the resulting wording.  In particular, I don't like "after 
> they have entered the kernel", as most of the kernel is not available 
> to be entered.  In addition, the unchanged part of the comment refers 
> to relocating from offset 0x60-0x100 to address 0x60, but in fact 
> offset 0x0-0x100 is placed at address 0 (0x60 is just the entry point), 
> and its done from within prom_init not before.


This was intended to be a simple update to make the comment more accurate,
not a quest to perfect it.  I would prefer to just drop this patch for
2.6.23.  Feel free to continue the effort.

-Geoff








More information about the Linuxppc-dev mailing list