]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Core/Pei/Ipf/IpfCpuCore.s
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4012 6f19259b...
[mirror_edk2.git] / MdeModulePkg / Core / Pei / Ipf / IpfCpuCore.s
CommitLineData
192f6d4c 1//++\r
2// Copyright (c) 2006, Intel Corporation\r
3// All rights reserved. This program and the accompanying materials\r
4// are licensed and made available under the terms and conditions of the BSD License\r
5// which accompanies this distribution. The full text of the license may be found at\r
6// http://opensource.org/licenses/bsd-license.php\r
7// \r
8// THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
9// WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
10//\r
11// Module Name:\r
12//\r
13// IpfCpuCore.s\r
14//\r
15// Abstract:\r
16// IPF Specific assembly routines\r
17//\r
18//--\r
19\r
20.file "IpfCpuCore.s"\r
21\r
22#include "IpfMacro.i"\r
192f6d4c 23\r
192f6d4c 24//---------------------------------------------------------------------------------\r
25//++\r
26// GetHandOffStatus\r
27//\r
28// This routine is called by all processors simultaneously, to get some hand-off\r
29// status that has been captured by IPF dispatcher and recorded in kernel registers.\r
30//\r
31// Arguments :\r
32//\r
33// On Entry : None.\r
34//\r
35// Return Value: Lid, R20Status.\r
36//\r
37//--\r
38//----------------------------------------------------------------------------------\r
39PROCEDURE_ENTRY (GetHandOffStatus)\r
40\r
41 NESTED_SETUP (0,2+0,0,0)\r
42\r
43 mov r8 = ar.k6 // Health Status (Self test params)\r
44 mov r9 = ar.k4 // LID bits\r
45 mov r10 = ar.k3;; // SAL_E entry state\r
9833aeaf 46 mov r11 = ar.k1 // Return address to PAL\r
192f6d4c 47\r
48 NESTED_RETURN\r
49PROCEDURE_EXIT (GetHandOffStatus)\r
50//----------------------------------------------------------------------------------\r
51\r
52\r