TianoCore EDK2 master
Loading...
Searching...
No Matches
ArmMmuLibConvert.c
Go to the documentation of this file.
1
10#include <Uefi.h>
11
12#include <Library/ArmLib.h>
13
14#include <Arm/AArch32.h>
15
16UINT32
17ConvertSectionAttributesToPageAttributes (
18 IN UINT32 SectionAttributes
19 )
20{
21 UINT32 PageAttributes;
22
23 PageAttributes = 0;
24 PageAttributes |= TT_DESCRIPTOR_CONVERT_TO_PAGE_CACHE_POLICY (SectionAttributes);
25 PageAttributes |= TT_DESCRIPTOR_CONVERT_TO_PAGE_AP (SectionAttributes);
26 PageAttributes |= TT_DESCRIPTOR_CONVERT_TO_PAGE_AF (SectionAttributes);
27 PageAttributes |= TT_DESCRIPTOR_CONVERT_TO_PAGE_XN (SectionAttributes);
28 PageAttributes |= TT_DESCRIPTOR_CONVERT_TO_PAGE_NG (SectionAttributes);
29 PageAttributes |= TT_DESCRIPTOR_CONVERT_TO_PAGE_S (SectionAttributes);
30
31 return PageAttributes;
32}
#define IN
Definition: Base.h:279