From patchwork Fri Feb 17 17:31:21 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 141937 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id A3593100B34 for ; Sat, 18 Feb 2012 04:31:52 +1100 (EST) Received: from localhost ([::1]:35794 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RyRew-0000qW-Bv for incoming@patchwork.ozlabs.org; Fri, 17 Feb 2012 12:31:50 -0500 Received: from eggs.gnu.org ([140.186.70.92]:32850) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RyRef-0000ct-FX for qemu-devel@nongnu.org; Fri, 17 Feb 2012 12:31:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RyRea-0002HR-EX for qemu-devel@nongnu.org; Fri, 17 Feb 2012 12:31:33 -0500 Received: from goliath.siemens.de ([192.35.17.28]:21090) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RyRea-0002Gv-45 for qemu-devel@nongnu.org; Fri, 17 Feb 2012 12:31:28 -0500 Received: from mail1.siemens.de (localhost [127.0.0.1]) by goliath.siemens.de (8.13.6/8.13.6) with ESMTP id q1HHVN0t022544; Fri, 17 Feb 2012 18:31:24 +0100 Received: from mchn199C.mchp.siemens.de ([139.25.109.49]) by mail1.siemens.de (8.13.6/8.13.6) with ESMTP id q1HHVMuR031868; Fri, 17 Feb 2012 18:31:23 +0100 From: Jan Kiszka To: Avi Kivity , Marcelo Tosatti Date: Fri, 17 Feb 2012 18:31:21 +0100 Message-Id: X-Mailer: git-send-email 1.7.3.4 In-Reply-To: References: In-Reply-To: References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Received-From: 192.35.17.28 Cc: Blue Swirl , Anthony Liguori , qemu-devel , kvm@vger.kernel.org, Gleb Natapov Subject: [Qemu-devel] [PATCH v4 09/10] optionsrom: Reserve space for checksum X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Always add a byte before the final 512-bytes alignment to reserve the space for the ROM checksum. Signed-off-by: Jan Kiszka --- pc-bios/optionrom/optionrom.h | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/pc-bios/optionrom/optionrom.h b/pc-bios/optionrom/optionrom.h index aa783de..3daf7da 100644 --- a/pc-bios/optionrom/optionrom.h +++ b/pc-bios/optionrom/optionrom.h @@ -124,7 +124,8 @@ movw %ax, %ds; #define OPTION_ROM_END \ - .align 512, 0; \ + .byte 0; \ + .align 512, 0; \ _end: #define BOOT_ROM_END \