[PATCH] Add comment explaining what cortex_a9_rev() is doing.

Robert P. J. Day rpjday at crashcourse.ca
Fri Feb 10 06:31:52 EST 2012


Signed-off-by: Robert P. J. Day <rpjday at crashcourse.ca>

---

  stole the comment straight from U-Boot, it seems useful since that
line of code isn't at all intuitive.

diff --git a/arch/arm/mach-omap/omap4_generic.c b/arch/arm/mach-omap/omap4_generic.c
index 5223c7e..c6e46e6 100644
--- a/arch/arm/mach-omap/omap4_generic.c
+++ b/arch/arm/mach-omap/omap4_generic.c
@@ -352,6 +352,7 @@ static unsigned int cortex_a9_rev(void)

 	unsigned int i;

+	/* Read Main ID Register (MIDR) */
 	asm ("mrc p15, 0, %0, c0, c0, 0" : "=r" (i));

 	return i;


-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================



More information about the barebox mailing list