]>
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 | |
11 | \r | |
12 | /**\r | |
13 | Get paging details.\r | |
14 | \r | |
15 | @param PagingContextData The paging context.\r | |
16 | @param PageTableBase Return PageTableBase field.\r | |
17 | @param Attributes Return Attributes field.\r | |
18 | \r | |
19 | **/\r | |
20 | VOID\r | |
21 | GetPagingDetails (\r | |
22 | IN PAGE_TABLE_LIB_PAGING_CONTEXT_DATA *PagingContextData,\r | |
23 | OUT UINTN **PageTableBase OPTIONAL,\r | |
24 | OUT UINT32 **Attributes OPTIONAL\r | |
25 | )\r | |
26 | {\r | |
27 | if (PageTableBase != NULL) {\r | |
28 | *PageTableBase = &PagingContextData->X64.PageTableBase;\r | |
29 | }\r | |
30 | if (Attributes != NULL) {\r | |
31 | *Attributes = &PagingContextData->X64.Attributes;\r | |
32 | }\r | |
33 | }\r | |
34 | \r |