public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH 0/3] ArmPkg/ArmLib: ASSERT() on misuse of set/way ops
@ 2020-02-26 13:13 Ard Biesheuvel
  2020-02-26 13:14 ` [PATCH 1/3] ArmPkg/ArmLib: clean up library includes Ard Biesheuvel
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Ard Biesheuvel @ 2020-02-26 13:13 UTC (permalink / raw)
  To: devel; +Cc: leif, Ard Biesheuvel

Talking to Leif on IRC, we decided that deprecating cache maintenance
by set/way, as I proposed in the series I just sent out [0] may be too
strict, especially considering that some v7 based uniprocessor platforms
such as BeagleBoard may actually need it to clean any junk from the caches
before turning them on.

So instead, ensure that this use cache remains supported, but discourage/
prevent misuse by ASSERT()ing that they are only used with the MMU off.

[0] https://edk2.groups.io/g/devel/topic/patch_0_6_armpkg_eradicate/71562844

Ard Biesheuvel (3):
  ArmPkg/ArmLib: clean up library includes
  ArmPkg/ArmLib: remove bogus protocol declaration
  ArmPkg/ArmLib: ASSERT on set/way cache ops being used with MMU on

 ArmPkg/Library/ArmLib/AArch64/AArch64Lib.c | 16 ++++++++++++----
 ArmPkg/Library/ArmLib/Arm/ArmV7Lib.c       | 17 +++++++++++++----
 ArmPkg/Library/ArmLib/ArmBaseLib.inf       |  6 +++---
 ArmPkg/Library/ArmLib/ArmLib.c             |  2 --
 4 files changed, 28 insertions(+), 13 deletions(-)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-02-26 13:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-26 13:13 [PATCH 0/3] ArmPkg/ArmLib: ASSERT() on misuse of set/way ops Ard Biesheuvel
2020-02-26 13:14 ` [PATCH 1/3] ArmPkg/ArmLib: clean up library includes Ard Biesheuvel
2020-02-26 13:14 ` [PATCH 2/3] ArmPkg/ArmLib: remove bogus protocol declaration Ard Biesheuvel
2020-02-26 13:14 ` [PATCH 3/3] ArmPkg/ArmLib: ASSERT on set/way cache ops being used with MMU on Ard Biesheuvel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox