PERFORCE change 94172 for review

John Baldwin jhb at FreeBSD.org
Tue Mar 28 15:23:49 UTC 2006


http://perforce.freebsd.org/chv.cgi?CH=94172

Change 94172 by jhb at 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);


More information about the p4-projects mailing list