2007-06-22 11:21:45 +08:00
|
|
|
/** @file
|
|
|
|
IA-32/x64 AsmWriteGdtr()
|
|
|
|
|
2010-04-24 00:00:47 +08:00
|
|
|
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
2019-04-04 07:06:00 +08:00
|
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
2007-06-22 11:21:45 +08:00
|
|
|
|
|
|
|
**/
|
|
|
|
|
2008-09-17 15:46:17 +08:00
|
|
|
|
2007-06-30 07:22:13 +08:00
|
|
|
|
2007-06-22 11:21:45 +08:00
|
|
|
|
|
|
|
#include "BaseLibInternals.h"
|
|
|
|
|
|
|
|
/**
|
|
|
|
Writes the current Global Descriptor Table Register (GDTR) descriptor.
|
|
|
|
|
|
|
|
Writes and the current GDTR descriptor specified by Gdtr. This function is
|
2008-12-05 11:23:13 +08:00
|
|
|
only available on IA-32 and x64.
|
2007-06-22 11:21:45 +08:00
|
|
|
|
|
|
|
If Gdtr is NULL, then ASSERT().
|
|
|
|
|
2010-06-26 05:56:02 +08:00
|
|
|
@param Gdtr The pointer to a GDTR descriptor.
|
2007-06-22 11:21:45 +08:00
|
|
|
|
|
|
|
**/
|
|
|
|
VOID
|
|
|
|
EFIAPI
|
|
|
|
AsmWriteGdtr (
|
|
|
|
IN CONST IA32_DESCRIPTOR *Gdtr
|
|
|
|
)
|
|
|
|
{
|
|
|
|
ASSERT (Gdtr != NULL);
|
|
|
|
InternalX86WriteGdtr (Gdtr);
|
|
|
|
}
|