]> git.proxmox.com Git - mirror_edk2.git/blob - EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/Ipf/ReadCpuid.s
Update the copyright notice format
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / EdkIIGlueLib / Library / BaseLib / Ipf / ReadCpuid.s
1 /// Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
2 /// This program and the accompanying materials
3 /// are licensed and made available under the terms and conditions of the BSD License
4 /// which accompanies this distribution. The full text of the license may be found at
5 /// http://opensource.org/licenses/bsd-license.php
6 ///
7 /// THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
8 /// WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
9 ///
10 /// Module Name: ReadCpuid.s
11 ///
12 ///
13 /// IPF specific AsmReadCpuid()function
14 ///
15
16 //---------------------------------------------------------------------------------
17 //++
18 // AsmReadCpuid
19 //
20 // This routine is used to Reads the current value of Processor Identifier Register (CPUID).
21 //
22 // Arguments :
23 //
24 // On Entry : The 8-bit Processor Identifier Register index to read.
25 //
26 // Return Value: The current value of Processor Identifier Register specified by Index.
27 //
28 //--
29 //----------------------------------------------------------------------------------
30 .text
31 .type AsmReadCpuid, @function
32 .proc AsmReadCpuid
33 .regstk 1, 0, 0, 0
34
35 AsmReadCpuid::
36 mov r8 = cpuid[in0];;
37 br.ret.dpnt b0;;
38 .endp AsmReadCpuid
39