2007-06-22 05:21:45 +02:00
|
|
|
/** @file
|
|
|
|
AsmWriteDr7 function
|
|
|
|
|
2010-04-23 18:00:47 +02:00
|
|
|
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
2019-04-04 01:06:00 +02:00
|
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
2007-06-22 05:21:45 +02:00
|
|
|
|
|
|
|
**/
|
|
|
|
|
2008-07-25 14:21:57 +02:00
|
|
|
/**
|
|
|
|
Writes a value to Debug Register 7 (DR7).
|
|
|
|
|
|
|
|
Writes and returns a new value to DR7. This function is only available on
|
2008-12-05 04:23:13 +01:00
|
|
|
IA-32 and x64. This writes a 32-bit value on IA-32 and a 64-bit value on x64.
|
2008-07-25 14:21:57 +02:00
|
|
|
|
2008-10-24 08:06:42 +02:00
|
|
|
@param Value The value to write to Dr7.
|
2008-07-25 14:21:57 +02:00
|
|
|
|
|
|
|
@return The value written to Debug Register 7 (DR7).
|
|
|
|
|
|
|
|
**/
|
2007-06-22 05:21:45 +02:00
|
|
|
UINTN
|
|
|
|
EFIAPI
|
|
|
|
AsmWriteDr7 (
|
2021-12-05 23:54:05 +01:00
|
|
|
IN UINTN Value
|
2007-06-22 05:21:45 +02:00
|
|
|
)
|
|
|
|
{
|
|
|
|
_asm {
|
|
|
|
mov eax, Value
|
|
|
|
mov dr7, eax
|
|
|
|
}
|
|
|
|
}
|