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