Changeset View
Changeset View
Standalone View
Standalone View
head/sys/powerpc/powerpc/cpu_subr64.S
Show All 21 Lines | |||||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||||
* SUCH DAMAGE. | * SUCH DAMAGE. | ||||
* | * | ||||
* $FreeBSD$ | * $FreeBSD$ | ||||
*/ | */ | ||||
#include "assym.s" | #include "assym.inc" | ||||
#include <machine/asm.h> | #include <machine/asm.h> | ||||
.globl CNAME(power_save_sequence) | .globl CNAME(power_save_sequence) | ||||
.p2align 3 | .p2align 3 | ||||
ENTRY(enter_idle_powerx) | ENTRY(enter_idle_powerx) | ||||
mfsprg0 %r3 /* Get the pcpu pointer */ | mfsprg0 %r3 /* Get the pcpu pointer */ | ||||
ld %r3,PC_CURTHREAD(%r3) /* Get current thread */ | ld %r3,PC_CURTHREAD(%r3) /* Get current thread */ | ||||
▲ Show 20 Lines • Show All 59 Lines • Show Last 20 Lines |