1 ;------------------------------------------------------------------------------
3 ; Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
4 ; SPDX-License-Identifier: BSD-2-Clause-Patent
16 ;------------------------------------------------------------------------------
21 ;------------------------------------------------------------------------------
25 ; IN UINT32 RegisterInEax,
26 ; OUT UINT32 *RegisterOutEax OPTIONAL,
27 ; OUT UINT32 *RegisterOutEbx OPTIONAL,
28 ; OUT UINT32 *RegisterOutEcx OPTIONAL,
29 ; OUT UINT32 *RegisterOutEdx OPTIONAL
31 ;------------------------------------------------------------------------------
32 global ASM_PFX(AsmCpuid)
36 push rax ; save Index on stack
55 pop rax ; restore Index to rax as return value