Re: [PATCH 0/7] sparc32,leon: additional genirq patches

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On Thu, 21 Apr 2011 11:09:23 -0700 (PDT), David Miller  wrote:
From: Sam Ravnborg <sam@xxxxxxxxxxxx>
Date: Wed, 20 Apr 2011 14:58:53 +0200

> The issue with boot_cpu_id being cleared is btw not new - but
> I should have caught that anyway.
It's partially another side effect of that awful behavioral change GCC
made several years ago to "auto BSS" variables explicitly initialized
to zero.
You used to be able to add an explicit zero initialization to force
items into the data section.

Yeah, ridiculous that change is, one could always use attribute section to force it into DATA but that is kind of complicated. I always thought I was stupid but now I know that the compiler changed its behaviour... thanks. Another problem is that "cleanup people" does not know of this and erase that only hint.
 >
This change has broken various things in the sparc32 port over the
years.
Probably the thing to do is to initialize boot_cpu_id{,4} to some
"invalid" value (like 0xff) in the kernel image and just make certain
the the initialization happens early enough.

That is basically what I've done in the next "[1..3] sparc32: boot_cpu_id patches".
Daniel


--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux