1 /** @file
2   CpuBreakpoint function.
3 
4   Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
5   SPDX-License-Identifier: BSD-2-Clause-Patent
6 
7 **/
8 
9 /**
10   Microsoft Visual Studio 7.1 Function Prototypes for I/O Intrinsics.
11 **/
12 
13 void __writemsr (unsigned long Register, unsigned __int64 Value);
14 
15 #pragma intrinsic(__writemsr)
16 
17 /**
18   Write data to MSR.
19 
20   @param  Index                The register index of MSR.
21   @param  Value                Data wants to be written.
22 
23   @return Value written to MSR.
24 
25 **/
26 UINT64
27 EFIAPI
AsmWriteMsr64(IN UINT32 Index,IN UINT64 Value)28 AsmWriteMsr64 (
29   IN UINT32  Index,
30   IN UINT64  Value
31   )
32 {
33   __writemsr (Index, Value);
34   return Value;
35 }
36 
37