mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] Add comment explaining what cortex_a9_rev() is doing.
@ 2012-02-10 11:31 Robert P. J. Day
  0 siblings, 0 replies; only message in thread
From: Robert P. J. Day @ 2012-02-10 11:31 UTC (permalink / raw)
  To: U-Boot Version 2 (barebox)


Signed-off-by: Robert P. J. Day <rpjday@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
========================================================================

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-02-10 11:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-10 11:31 [PATCH] Add comment explaining what cortex_a9_rev() is doing Robert P. J. Day

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox