]> git.proxmox.com Git - mirror_edk2.git/blob - OldMdePkg/Library/PeiServicesTablePointerLibKr1/Ipf/ReadKr1.s
Fixed build break by removing missing include file. Made code compile by not assuming...
[mirror_edk2.git] / OldMdePkg / Library / PeiServicesTablePointerLibKr1 / Ipf / ReadKr1.s
1 //++
2 //
3 // Copyright (c) 2006 Intel Corporation. All rights reserved
4 // This software and associated documentation (if any) is furnished
5 // under a license and may only be used or copied in accordance
6 // with the terms of the license. Except as permitted by such
7 // license, no part of this software or documentation may be
8 // reproduced, stored in a retrieval system, or transmitted in any
9 // form or by any means without the express written consent of
10 // Intel Corporation.
11 //
12 //
13 // Module Name:
14 //
15 // ReadKr1.s
16 //
17 // Abstract:
18 //
19 // Contains assembly code for read Kr1.
20 //
21 //--
22
23 .file "ReadKr1.s"
24
25 #include "IpfMacro.i"
26
27 //---------------------------------------------------------------------------------
28 //++
29 // AsmReadKr1
30 //
31 // This routine is used to get KR1. KR1 is used to store Pei Service Table
32 // Pointer in archeture.
33 //
34 // Arguments :
35 //
36 // On Entry : None.
37 //
38 // Return Value: Pei Services Table.
39 //
40 //--
41 //----------------------------------------------------------------------------------
42 PROCEDURE_ENTRY (AsmReadKr1)
43
44 mov r8 = ar.k1;; // Pei Services Table Pointer
45 br.ret.dpnt b0;;
46
47 PROCEDURE_EXIT (AsmReadKr1)