svn commit: r259102 - head/sys/sparc64/sparc64

Marius Strobl marius at FreeBSD.org
Sun Dec 8 15:25:19 UTC 2013


Author: marius
Date: Sun Dec  8 15:25:19 2013
New Revision: 259102
URL: http://svnweb.freebsd.org/changeset/base/259102

Log:
  Restore a vital comment nuked in r259016.

Modified:
  head/sys/sparc64/sparc64/machdep.c

Modified: head/sys/sparc64/sparc64/machdep.c
==============================================================================
--- head/sys/sparc64/sparc64/machdep.c	Sun Dec  8 14:21:54 2013	(r259101)
+++ head/sys/sparc64/sparc64/machdep.c	Sun Dec  8 15:25:19 2013	(r259102)
@@ -553,6 +553,13 @@ sparc64_init(caddr_t mdp, u_long o1, u_l
 	 * trigger a fatal reset error or worse things further down the road.
 	 * XXX it should be possible to use this solely instead of writing
 	 * %tba in cpu_setregs().  Doing so causes a hang however.
+	 *
+	 * NB: the low-level console drivers require a working DELAY() and
+	 * some compiler optimizations may cause the curthread accesses of
+	 * mutex(9) to be factored out even if the latter aren't actually
+	 * called.  Both of these require PCPU_REG to be set.  However, we
+	 * can't set PCPU_REG without also taking over the trap table or the
+	 * firmware will overwrite it.
 	 */
 	sun4u_set_traptable(tl0_base);
 


More information about the svn-src-all mailing list