]>
Commit | Line | Data |
---|---|---|
c70fef96 ED |
1 | /** @file\r |
2 | Return Paging attribute.\r | |
3 | \r | |
4 | Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>\r | |
5 | SPDX-License-Identifier: BSD-2-Clause-Patent\r | |
6 | \r | |
7 | **/\r | |
8 | \r | |
9 | #include "CpuPageTable.h"\r | |
10 | \r | |
c70fef96 ED |
11 | /**\r |
12 | Get paging details.\r | |
13 | \r | |
14 | @param PagingContextData The paging context.\r | |
15 | @param PageTableBase Return PageTableBase field.\r | |
16 | @param Attributes Return Attributes field.\r | |
17 | \r | |
18 | **/\r | |
19 | VOID\r | |
20 | GetPagingDetails (\r | |
053e878b MK |
21 | IN PAGE_TABLE_LIB_PAGING_CONTEXT_DATA *PagingContextData,\r |
22 | OUT UINTN **PageTableBase OPTIONAL,\r | |
23 | OUT UINT32 **Attributes OPTIONAL\r | |
c70fef96 ED |
24 | )\r |
25 | {\r | |
26 | if (PageTableBase != NULL) {\r | |
27 | *PageTableBase = &PagingContextData->X64.PageTableBase;\r | |
28 | }\r | |
053e878b | 29 | \r |
c70fef96 ED |
30 | if (Attributes != NULL) {\r |
31 | *Attributes = &PagingContextData->X64.Attributes;\r | |
32 | }\r | |
33 | }\r |