Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Jul 2006 00:56:03 GMT
From:      John Birrell <jb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 102619 for review
Message-ID:  <200607280056.k6S0u39v051403@repoman.freebsd.org>

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

Change 102619 by jb@jb_freebsd2 on 2006/07/28 00:55:46

	Move the CPU register snapshot code into an include file so that it can
	be included as part of the cpu_snapshot_save leaf function as well as
	being included inline in asm code where a 'call' to a function at tl1
	would end in tears.
	
	The index to the per-cpu snapshot array is the program counter when 
	embedded in asm code and %o7 when included in the cpu_snapshot_save leaf
	function.
	
	The most imprtant thing to capture in this info is the index (program
	counter or return address) because that identifies the section of code
	that the CPU was last seen executing.
	
	None of this would be needed if Sun would just make the hypervisor give
	access to another CPU's registers. Apparently that is work in progress
	at Sun.

Affected files ...

.. //depot/projects/dtrace/src/sys/sun4v/include/cpu_snapshot_save.h#1 add

Differences ...



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