Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Mar 2006 15:23:48 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 94172 for review
Message-ID:  <200603281523.k2SFNmQ2033610@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=94172

Change 94172 by jhb@jhb_slimer on 2006/03/28 15:23:27

	kmupetext() needs Giant still.

Affected files ...

.. //depot/projects/smpng/sys/kern/link_elf.c#35 edit

Differences ...

==== //depot/projects/smpng/sys/kern/link_elf.c#35 (text+ko) ====

@@ -759,8 +759,10 @@
 
 #ifdef GPROF
     /* Update profiling information with the new text segment. */
+    mtx_lock(&Giant);
     kmupetext((uintfptr_t)(mapbase + segs[0]->p_vaddr - base_vaddr +
 	segs[0]->p_memsz));
+    mtx_unlock(&Giant);
 #endif
 
     ef->dynamic = (Elf_Dyn *) (mapbase + phdyn->p_vaddr - base_vaddr);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200603281523.k2SFNmQ2033610>