From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by mx.groups.io with SMTP id smtpd.web11.18599.1598534242500671859 for ; Thu, 27 Aug 2020 06:17:22 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@nuviainc-com.20150623.gappssmtp.com header.s=20150623 header.b=uVMx02D2; spf=pass (domain: nuviainc.com, ip: 209.85.221.68, mailfrom: graeme@nuviainc.com) Received: by mail-wr1-f68.google.com with SMTP id o4so5364714wrn.0 for ; Thu, 27 Aug 2020 06:17:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nuviainc-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=XDXmhh1DPsTJeE6hoZeh/2pt1b1OVIHuiFpUcVZSBfM=; b=uVMx02D2eR3AfHLPojMDoll9Us1VutHOVIBydZ5GbdmVlXNuHZ/TNvhJySjx4zKAbV +2Qns1fCLC1KeV1QQ0m5pHW3BZOQL2/sYp6FUrJP8aAZmZF5QeBV6dWMsg6sZA/vpq8r 3K4+51tbSTFTX4KODoYPqAhTaVmSOhLHMcETnNN7kIAtHCRyt5xzD3IdoVz7ynpKg9Gr 1dn1ule6+NYV7pYzNaKge/8mbPWFggf20e5qZlloZMlWqwyY1OuXqWLpcKwUL7SuISaD fyKwimhArwRpg57MWI8vCboQfGG7Uo/4c+Je1FDHS1MIc7WfDaJE5i19xOK53AGFlaCt IX2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=XDXmhh1DPsTJeE6hoZeh/2pt1b1OVIHuiFpUcVZSBfM=; b=J79MHo3v8NoMhUIzPP2Wt6jiDQ4QfCnY7cpJyy70E4lMHAY1kVdN2k8TcS0irJVZiW z2Q+ox/XrBZUOxmktFEVYuYMmCfQcn1DE/n4lMe41v5H8Pt5D6xUUlcppj3j5ChWaWlG zolVpbZxfFfDdiRL43dzzd3a9Zd06NlYUGbGKtOqYrTFDM6v4titcKGX0YFpwjqTYNPc kBZBb6CzGBAnhsKKulUZtq7y3Wh4OPS7uunuUQeUMBqz60JijeAzs3HiQU5w8xGzMshu or8veuQsr+Za4gZlUeem2UQKqBFqn6/WjjT8Qx50CbFhFurs6GoNuhOHHx7bZahWxAZA V3Jg== X-Gm-Message-State: AOAM532mcevHzqgDYaXDTM79VP/vrHkjrzEH6zxiON8VFp+GHu16ovqS oFv3pj7IILjAOV5WMy5U/AUa1Jc7Nyhcwe3K/GGiABQj7WvKE+gyMtBLVcxW4WCiK3JsunHpHHt sG5HCXNWkPrZsMGh0zuPRJSs+yqCF2REgaNBM6OGy6vrDwzV9tOo2ph/Uu0Cxu6by2kb11KA= X-Google-Smtp-Source: ABdhPJxJ4jXQ7rjMundAIgxj7wXXS7suC6jBdvYri4aZM3baFsdXq6EE8WEgNQLKLcz1INg8iQwA6Q== X-Received: by 2002:a5d:4e03:: with SMTP id p3mr16708093wrt.354.1598534240633; Thu, 27 Aug 2020 06:17:20 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([2a02:8010:64d6::1d89]) by smtp.gmail.com with ESMTPSA id g3sm5739211wrb.59.2020.08.27.06.17.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Aug 2020 06:17:19 -0700 (PDT) From: "Graeme Gregory" To: devel@edk2.groups.io Cc: leif@nuviainc.com, tanmay.jagdale@linaro.org, Graeme Gregory Subject: [edk2-plaforms PATCH 1/1] SbsaQemu: Fix CPUID generation in SSDT Date: Thu, 27 Aug 2020 14:17:15 +0100 Message-Id: <20200827131715.234476-1-graeme@nuviainc.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The SBSAQEMU_ACPI_ITOA contains a typo that puts invalid characters in the ASL for any number of CPUs > 10. Signed-off-by: Graeme Gregory --- Silicon/Qemu/SbsaQemu/Include/IndustryStandard/SbsaQemuAcpi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Silicon/Qemu/SbsaQemu/Include/IndustryStandard/SbsaQemuAcpi.h b/Silicon/Qemu/SbsaQemu/Include/IndustryStandard/SbsaQemuAcpi.h index 1a7d9dda2b99..0f79d8a9c3c8 100644 --- a/Silicon/Qemu/SbsaQemu/Include/IndustryStandard/SbsaQemuAcpi.h +++ b/Silicon/Qemu/SbsaQemu/Include/IndustryStandard/SbsaQemuAcpi.h @@ -51,7 +51,7 @@ #define SBSAQEMU_ACPI_CPU_DEV_NAME { 'C', '0', '0', '0' } // Macro to convert Integer to Character -#define SBSAQEMU_ACPI_ITOA(Byte) (0x30 + (Byte > 9 ? (Byte + 1) : Byte)) +#define SBSAQEMU_ACPI_ITOA(Byte) (0x30 + (Byte > 9 ? (Byte + 7) : Byte)) #define SBSAQEMU_ACPI_CPU_HID { \ AML_NAME_OP, AML_NAME_CHAR__, 'H', 'I', 'D', \ -- 2.25.1