From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48]) by mx.groups.io with SMTP id smtpd.web11.15030.1639420266434877090 for ; Mon, 13 Dec 2021 10:31:06 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@nuviainc-com.20210112.gappssmtp.com header.s=20210112 header.b=5iM8AggK; spf=pass (domain: nuviainc.com, ip: 209.85.216.48, mailfrom: rebecca@nuviainc.com) Received: by mail-pj1-f48.google.com with SMTP id n15-20020a17090a160f00b001a75089daa3so15300648pja.1 for ; Mon, 13 Dec 2021 10:31:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nuviainc-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=NiIEiGvcWKfCFUqEx31w6MpyXy5hBdMgr3j+QYpYAdA=; b=5iM8AggKXfYvyot0hROa3S4BTcbJhLdKb4ATaUGDo3wRopeV7y8xZ6cQWU3fU89/Db RZj93t+SvIPMm1bNKKQFPz85gUUbw+AX9C289M1eittP/ri20R8e4aEKrglqrKW3Xrux gHgb2ZmyHru/Uv2kJOmgZixgnZpQ0f89zZOEzNMac+3bGS+Rcd6Fqh5w2fmoxO8KDiAQ uQzEGK5LXRW/XQ145q3FYtLZ1QCdM6HWQ/uluWs3/Oqtukrbdh7NiN8HQDqWtODZU3Ls 7JGv1KjQoz5ryp55rxUCR9iqls2X7O8FnOCDWb5jVeyM/aTinRoYuweVoyp4/8Mxd/Tk Z/Jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=NiIEiGvcWKfCFUqEx31w6MpyXy5hBdMgr3j+QYpYAdA=; b=UxI/GOAl8hNnGjRqNa/8d+SfSb6JC065mHxVl1+FXjauGWLZKSAFn4L2nbfKvaCvtX LmRtIcD2LWsoVCn7oUUh7efJXHUAt4+wO6K40TP8FiYXVAj5lZVRoA1sSbHF0kZHatcj DzMKNgkyo/j9EbCIzeubUNoU3p0FY/fRG4taRmOCpC2y2bhhu2uHrTofziQ1kZqaEzVe 5/azQxCFeiwTjqvpO6jprgDVlwxmUbEsQmdVpq4jIMbpNRonqp8oGC+FVbLtVwr7e7Ra kLbnWorB+9SlZupRkjkcz+tYnRPGG4Fw6ar9XXGthE2Mg2A6T/6cfXWkrKY5EcOfgg3I LseA== X-Gm-Message-State: AOAM532mH01XHECB8tGug5XxDUDU+bAX7A6g/IXgA9rgtzaixF/Yh1dX xIAq3DYAZOjom+pZlOvV9LJLFtM6X3sVHXw2vMakjU9TJ+yuKWyjkeD48ZiUvD7gaWdWv6RvXdP bSZNWG1/KxQe3Waj9ufO0V/V0Q3/QVA8HRWoDJp66QgcB8VQql6iendAxMc+f/6fRhGM+EQ== X-Google-Smtp-Source: ABdhPJyHK3AOqMmD531MmJ21A6f2cgn6UdufmRX20qHIy5P0ua36O2msRe+5AmyJ7muhG3rQ4cYt3A== X-Received: by 2002:a17:902:b60b:b0:144:e601:de5 with SMTP id b11-20020a170902b60b00b00144e6010de5mr98122281pls.36.1639420265697; Mon, 13 Dec 2021 10:31:05 -0800 (PST) Return-Path: Received: from linbox.ba.nuviainc.com ([2601:681:4300:69e:9e7b:efff:fe2b:884c]) by smtp.gmail.com with ESMTPSA id g15sm15530529pfj.144.2021.12.13.10.31.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Dec 2021 10:31:05 -0800 (PST) From: "Rebecca Cran" To: devel@edk2.groups.io, Ard Biesheuvel , Gerd Hoffmann , Samer El-Haj-Mahmoud , Leif Lindholm , nd , Sami Mujawar Cc: Rebecca Cran Subject: [PATCH v3 0/2] ArmPkg: Add SMC helper functions Date: Mon, 13 Dec 2021 11:30:54 -0700 Message-Id: <20211213183056.31444-1-rebecca@nuviainc.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit To reduce the amount of template code, introduce SMC helper functions. Update ArmSmcPsciResetSystemLib and Universal/Smbios to use them. Changes from v2 to v3: o Fixed code style issues with Uncrustify. o Fixed patch 2/2 subject. o Added OPTIONAL tag to functions. o Added ZeroMem call to initialize Args. GitHub Test PR: https://github.com/tianocore/edk2/pull/2300 Rebecca Cran (2): ArmPkg: Add SMC helper functions ArmPkg: Update SMC calls to use the new ArmCallSmc0/1/2/3 functions ArmPkg/Include/Library/ArmSmcLib.h | 73 +++++++++++ ArmPkg/Library/ArmSmcLib/ArmSmc.c | 129 ++++++++++++++++++++ ArmPkg/Library/ArmSmcLib/ArmSmcLib.inf | 3 + ArmPkg/Library/ArmSmcLibNull/ArmSmcLibNull.c | 85 +++++++++++++ ArmPkg/Library/ArmSmcPsciResetSystemLib/ArmSmcPsciResetSystemLib.c | 10 +- ArmPkg/Universal/Smbios/ProcessorSubClassDxe/SmbiosProcessorArmCommon.c | 40 +++--- 6 files changed, 308 insertions(+), 32 deletions(-) create mode 100644 ArmPkg/Library/ArmSmcLib/ArmSmc.c -- 2.31.1