mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-12-23 16:17:40 +01:00
33 lines
740 B
NASM
33 lines
740 B
NASM
|
;------------------------------------------------------------------------------
|
||
|
;
|
||
|
; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
|
||
|
; SPDX-License-Identifier: BSD-2-Clause-Patent
|
||
|
;
|
||
|
; Module Name:
|
||
|
;
|
||
|
; ReadMsr64.Asm
|
||
|
;
|
||
|
; Abstract:
|
||
|
;
|
||
|
; AsmReadMsr64 function
|
||
|
;
|
||
|
; Notes:
|
||
|
;
|
||
|
;------------------------------------------------------------------------------
|
||
|
|
||
|
SECTION .text
|
||
|
|
||
|
;------------------------------------------------------------------------------
|
||
|
; UINT64
|
||
|
; EFIAPI
|
||
|
; AsmReadMsr64 (
|
||
|
; IN UINT64 Index
|
||
|
; );
|
||
|
;------------------------------------------------------------------------------
|
||
|
global ASM_PFX(AsmReadMsr64)
|
||
|
ASM_PFX(AsmReadMsr64):
|
||
|
mov ecx, [esp + 4]
|
||
|
rdmsr
|
||
|
ret
|
||
|
|