From patchwork Thu Oct 29 20:39:36 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Al Stone X-Patchwork-Id: 55798 Delivered-To: patches@linaro.org Received: by 10.112.61.134 with SMTP id p6csp782361lbr; Thu, 29 Oct 2015 13:39:50 -0700 (PDT) X-Received: by 10.60.43.66 with SMTP id u2mr3118070oel.44.1446151190457; Thu, 29 Oct 2015 13:39:50 -0700 (PDT) Return-Path: Received: from mail-oi0-x231.google.com (mail-oi0-x231.google.com. [2607:f8b0:4003:c06::231]) by mx.google.com with ESMTPS id oi7si2173437oeb.46.2015.10.29.13.39.50 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 29 Oct 2015 13:39:50 -0700 (PDT) Received-SPF: pass (google.com: domain of al.stone@linaro.org designates 2607:f8b0:4003:c06::231 as permitted sender) client-ip=2607:f8b0:4003:c06::231; Authentication-Results: mx.google.com; spf=pass (google.com: domain of al.stone@linaro.org designates 2607:f8b0:4003:c06::231 as permitted sender) smtp.mailfrom=al.stone@linaro.org; dkim=pass header.i=@linaro_org.20150623.gappssmtp.com Received: by oifu63 with SMTP id u63so48252436oif.2 for ; Thu, 29 Oct 2015 13:39:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro_org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=QobYWiyh4KYhJcmBgtTNa4zkzq0888EHr0CMibwEZiY=; b=ikkumJwI7dLeQU90mnEw/6A4djg6AHn+n1keEKeyJF7odc4aMRl2nnkU7cxV5/lmdV CrZ1xlwFuTzaZxPwWbU4zL4PuyKag7dk7NXMHgWKQ4BYKuznBLw/I1+ILrCZdz9I/Fjh FYjDaFhos3IrklkaZhBs3vk07AUyDLtwr4Heb8f9TOQzlM7gz+3jTxd8RCrKJQkiP9Ly Lp37JXE2Pm/ZTjAyB7h/Axs4gTmATHm9bZ385d1MNLGVbigAYt2UJx/YHHWWtW17SHFO du2xsOQChx5T5vuszNPi8oNkvLIm1wd0IgBehmiaPq5gkh18krbKBRfIVOI/K9lpvWIj YH2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=QobYWiyh4KYhJcmBgtTNa4zkzq0888EHr0CMibwEZiY=; b=day5+Cltf5JCTKzRuZVgQz1Rd1JoURzL8X5Sm0NG79GxHv5rTJZyrhfnAKX1n33H/F yBVokTIo7qaOLLvCuZYXqgChm6XrisaEBVCFZtz+RYImspkO+WFE0Q7YF4B6SH2hfL2L DYq4G1HmbeCg3P8C3ZcnYANfgyf1JVDU3uDUcqkrjXH2X62aGtTG89fvGyqPEeEMpY0p 8ZLW5fqgdULiz3pCgFbGfWb5vIqZnQ3nrjVqqsegVathhk1m/P0MJUATixFLAhDMMtzm aPRThFBhq/jFEr180f9tWaxfqDNiM5Ow2EUjRUBIgj1EBAuD/bPwAVpjd8Y9RszHi4Uz SHzg== X-Gm-Message-State: ALoCoQmjtbOmaGFwZ6w+ArpjXfzfwbkXfJVAFwhzyv4mSrHSqgtl4uuqPCJLt9JXhiOVXnudSBvX X-Received: by 10.202.179.198 with SMTP id c189mr2893743oif.67.1446151190050; Thu, 29 Oct 2015 13:39:50 -0700 (PDT) Return-Path: Received: from fidelio.ahs3.com (c-50-134-239-249.hsd1.co.comcast.net. [50.134.239.249]) by smtp.googlemail.com with ESMTPSA id ik9sm1294392obc.1.2015.10.29.13.39.47 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 29 Oct 2015 13:39:48 -0700 (PDT) From: Al Stone To: fwts-devel@lists.ubuntu.com Cc: linaro-acpi@lists.linaro.org, patches@linaro.org, Al Stone Subject: [PATCH] MADT subtables: Local SAPIC structure has 3 reserved bytes, not 1 Date: Thu, 29 Oct 2015 14:39:36 -0600 Message-Id: <1446151176-22234-1-git-send-email-al.stone@linaro.org> X-Mailer: git-send-email 2.4.3 According to section 5.2.12.10 of the ACPI 6.0 spec, the reserved field starts at byte offset 5 and is 3 bytes long. However, the subtable data structure being used makes it only 1 byte long. This is incorrect, so fix it. Signed-off-by: Al Stone --- src/lib/include/fwts_acpi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.4.3 diff --git a/src/lib/include/fwts_acpi.h b/src/lib/include/fwts_acpi.h index 5cc4cb4..cf8f4b8 100644 --- a/src/lib/include/fwts_acpi.h +++ b/src/lib/include/fwts_acpi.h @@ -473,7 +473,7 @@ typedef struct { uint8_t acpi_processor_id; uint8_t local_sapic_id; uint8_t local_sapic_eid; - uint8_t reserved; + uint8_t reserved[3]; uint32_t flags; uint32_t uid_value; char uid_string[0];