]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OldMdePkg/Library/PeiServicesTablePointerLibKr1/Ipf/ReadKr1.s
Moved the MdePkg to OldMdePkg so that new code in MdePkg does not break existing...
[mirror_edk2.git] / OldMdePkg / Library / PeiServicesTablePointerLibKr1 / Ipf / ReadKr1.s
diff --git a/OldMdePkg/Library/PeiServicesTablePointerLibKr1/Ipf/ReadKr1.s b/OldMdePkg/Library/PeiServicesTablePointerLibKr1/Ipf/ReadKr1.s
new file mode 100644 (file)
index 0000000..6f3155c
--- /dev/null
@@ -0,0 +1,47 @@
+//++\r
+//\r
+// Copyright (c) 2006 Intel Corporation. All rights reserved\r
+// This software and associated documentation (if any) is furnished\r
+// under a license and may only be used or copied in accordance\r
+// with the terms of the license. Except as permitted by such\r
+// license, no part of this software or documentation may be\r
+// reproduced, stored in a retrieval system, or transmitted in any\r
+// form or by any means without the express written consent of\r
+// Intel Corporation.\r
+//\r
+//\r
+// Module Name:\r
+//\r
+//   ReadKr1.s\r
+//\r
+// Abstract:\r
+//\r
+//   Contains assembly code for read Kr1.\r
+//\r
+//--\r
+\r
+  .file  "ReadKr1.s"\r
+\r
+#include  "IpfMacro.i"\r
+\r
+//---------------------------------------------------------------------------------\r
+//++\r
+// AsmReadKr1\r
+//\r
+// This routine is used to get KR1. KR1 is used to store Pei Service Table\r
+// Pointer in archeture.\r
+//\r
+// Arguments : \r
+//\r
+// On Entry :  None.\r
+//\r
+// Return Value: Pei Services Table.\r
+// \r
+//--\r
+//----------------------------------------------------------------------------------\r
+PROCEDURE_ENTRY (AsmReadKr1)\r
+        \r
+        mov             r8 = ar.k1;;  // Pei Services Table Pointer\r
+        br.ret.dpnt     b0;;\r
+\r
+PROCEDURE_EXIT (AsmReadKr1)\r