From 1a7b6d9ea296102dc42baa3278bc3f17448ac957 Mon Sep 17 00:00:00 2001 From: oliviermartin Date: Sun, 14 Apr 2013 09:30:46 +0000 Subject: ArmPkg/BdsLib: Replace ARM magic value by a proper defined value. "ARMH" is the Four-Letter unique identifier used by ARM in the context of the fast SMC identification interface. This patch properly defines this value in a header file instead of using the numeric value directly in the code. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14268 6f19259b-4bc3-4df7-8a09-765794883524 --- ArmPkg/Library/BdsLib/BdsLinuxFdt.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ArmPkg/Library/BdsLib/BdsLinuxFdt.c') diff --git a/ArmPkg/Library/BdsLib/BdsLinuxFdt.c b/ArmPkg/Library/BdsLib/BdsLinuxFdt.c index b5dd237136..7bfb2cd628 100644 --- a/ArmPkg/Library/BdsLib/BdsLinuxFdt.c +++ b/ArmPkg/Library/BdsLib/BdsLinuxFdt.c @@ -260,8 +260,7 @@ PrepareFdt ( if (Rx == ARM_TRUSTZONE_UID_4LETTERID) { Rx = ARM_SMC_ID_UID + 1; ArmCallSmc (&Rx); - //TODO: Replace ARM magic number - if (Rx == 0x40524d48) { + if (Rx == ARM_TRUSTZONE_ARM_UID) { PsciSmcSupported = TRUE; } } -- cgit v1.2.3