Skip to content

Commit

Permalink
ArmPkg ArmVirtPkg MdeModulePkg: switch to separate ArmMmuLib
Browse files Browse the repository at this point in the history
Switch all users of ArmLib that depend on the MMU routines to the new,
separate ArmMmuLib. This needs to occur in one go, since the MMU
routines are removed from ArmLib build at the same time, to prevent
conflicting symbols.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <[email protected]>
Acked-by: Laszlo Ersek <[email protected]>
Reviewed-by: Star Zeng <[email protected]>
  • Loading branch information
Ard Biesheuvel committed Jul 7, 2016
1 parent d7f0346 commit 5db1cce
Show file tree
Hide file tree
Showing 23 changed files with 13 additions and 1,285 deletions.
1 change: 1 addition & 0 deletions ArmPkg/Drivers/CpuDxe/CpuDxe.inf
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@

[LibraryClasses]
ArmLib
ArmMmuLib
BaseMemoryLib
CacheMaintenanceLib
CpuLib
Expand Down
38 changes: 0 additions & 38 deletions ArmPkg/Include/Library/ArmLib.h
Original file line number Diff line number Diff line change
Expand Up @@ -371,14 +371,6 @@ ArmGetTTBR0BaseAddress (
VOID
);

RETURN_STATUS
EFIAPI
ArmConfigureMmu (
IN ARM_MEMORY_REGION_DESCRIPTOR *MemoryTable,
OUT VOID **TranslationTableBase OPTIONAL,
OUT UINTN *TranslationTableSize OPTIONAL
);

BOOLEAN
EFIAPI
ArmMmuEnabled (
Expand Down Expand Up @@ -595,34 +587,4 @@ ArmUnsetCpuActlrBit (
IN UINTN Bits
);

RETURN_STATUS
ArmSetMemoryRegionNoExec (
IN EFI_PHYSICAL_ADDRESS BaseAddress,
IN UINT64 Length
);

RETURN_STATUS
ArmClearMemoryRegionNoExec (
IN EFI_PHYSICAL_ADDRESS BaseAddress,
IN UINT64 Length
);

RETURN_STATUS
ArmSetMemoryRegionReadOnly (
IN EFI_PHYSICAL_ADDRESS BaseAddress,
IN UINT64 Length
);

RETURN_STATUS
ArmClearMemoryRegionReadOnly (
IN EFI_PHYSICAL_ADDRESS BaseAddress,
IN UINT64 Length
);

VOID
ArmReplaceLiveTranslationEntry (
IN UINT64 *Entry,
IN UINT64 Value
);

#endif // __ARM_LIB__
36 changes: 0 additions & 36 deletions ArmPkg/Library/ArmLib/AArch64/AArch64BaseLibConstructor.c

This file was deleted.

3 changes: 0 additions & 3 deletions ArmPkg/Library/ArmLib/AArch64/AArch64Lib.inf
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,16 @@
MODULE_TYPE = BASE
VERSION_STRING = 1.0
LIBRARY_CLASS = ArmLib
CONSTRUCTOR = AArch64LibConstructor

[Sources.AARCH64]
AArch64Lib.c
AArch64Mmu.c
AArch64ArchTimer.c
ArmLibSupportV8.S
AArch64Support.S
AArch64ArchTimerSupport.S

../Common/AArch64/ArmLibSupport.S
../Common/ArmLib.c
AArch64BaseLibConstructor.c

[Packages]
ArmPkg/ArmPkg.dec
Expand Down
1 change: 0 additions & 1 deletion ArmPkg/Library/ArmLib/AArch64/AArch64LibPrePi.inf
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
../Common/ArmLib.c

AArch64Lib.c
AArch64Mmu.c

AArch64ArchTimer.c
AArch64ArchTimerSupport.S
Expand Down
Loading

0 comments on commit 5db1cce

Please sign in to comment.