Re: [Kgdb-bugreport] 2.6.23-rc3-mm1: kgdb build failure on powerpc
From: Pete/Piet Delaney <hidden>
Date: 2007-08-30 00:05:39
Also in:
lkml
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Pete/Piet Delaney wrote:
Jason Wessel wrote:quoted
Andrew Morton wrote:quoted
On Wed, 22 Aug 2007 17:44:12 -0500 Jason Wessel [off-list ref] wrote:quoted
+ while (!atomic_read(&debugger_active));eek. We're in the process of hunting down and eliminating exactly this construct. There have been cases where the compiler cached the atomic_read() result in a register, turning the above into an infinite loop. Plus we should never add power-burners like that into the kernel anyway. That loop should have a cpu_relax() in it. Which will also fix the compiler problem described above.Agreed, and fixed with a cpu_relax.quoted
quoted
Thirdly, please always add a newline when coding statements like that: while (expr()) ;The other instances I found of the same problem in the kgdb core are fixed too.quoted
I merged all the changes into the for_mm branch in the kgdb git tree.Where is the kgdb git tree?
Trying: git clone http://master.kernel.org/pub/scm/linux/kernel/git/jwessel/linux-2.6-kgdb.git - -piet
-pietquoted
Thanks, Jason. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG1gnFJICwm/rv3hoRApOoAJ9BHXLsIuxDiOCaAFRfAZGwrDXATQCeLL3O bxtr3qz0soPRghPmtSZgOqc= =kQd1 -----END PGP SIGNATURE-----