From patchwork Sat Jun 28 01:25:34 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roy Franz X-Patchwork-Id: 32645 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f200.google.com (mail-pd0-f200.google.com [209.85.192.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id BD0D2200B9 for ; Sat, 28 Jun 2014 01:27:29 +0000 (UTC) Received: by mail-pd0-f200.google.com with SMTP id v10sf21521163pde.7 for ; Fri, 27 Jun 2014 18:27:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:cc:subject:precedence:list-id:list-unsubscribe:list-post :list-help:list-subscribe:mime-version:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list :list-archive:content-type:content-transfer-encoding; bh=JYPAzypVDGwM9kl4fA0o8RUDlTN/Ox1PuZRFzH1+haU=; b=ArXqsrNHNCsU4XavYT7BWBfDW8J8p1ftsnuOK4ZgaJBuj2IoLROjDXNZjnTVY0VKH7 q2w+jrFKs/ZxVBk9wY+/ujd0LyYp89iDRPu8CHww8p0+ynbdjOZLNJc48rRvsx4ZvUV0 cXexownu3jhZC261HBFbgLvJ8O1o/QyaxO1BIRDRex5YHYXRyWu+Y9U67PflZUqTGKE1 iBzAYubyBfGmCJTLcxQuQEjEpiswAAxVNmjtSauFPHsClzfzTrNOKPIcIAwPOOqbeIdH 56KRefc4FGdZpGAR/iBY2Cz6JMkIZ3G/4qtufFkyxkzxjLsdT7dW5Kyn3x6ulJdhG8od mONQ== X-Gm-Message-State: ALoCoQlD7CL8YmDBszNlNh3rfXWQHVvPrN3yl0rKKSI42nVniipPDvlai866y/Ea+yEgKjjw5sIK X-Received: by 10.66.102.68 with SMTP id fm4mr7900573pab.27.1403918848740; Fri, 27 Jun 2014 18:27:28 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.94.129 with SMTP id g1ls826151qge.17.gmail; Fri, 27 Jun 2014 18:27:28 -0700 (PDT) X-Received: by 10.58.39.42 with SMTP id m10mr22508191vek.29.1403918848641; Fri, 27 Jun 2014 18:27:28 -0700 (PDT) Received: from mail-ve0-f170.google.com (mail-ve0-f170.google.com [209.85.128.170]) by mx.google.com with ESMTPS id y17si7202549vdg.107.2014.06.27.18.27.28 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 27 Jun 2014 18:27:28 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.170 as permitted sender) client-ip=209.85.128.170; Received: by mail-ve0-f170.google.com with SMTP id i13so6106864veh.29 for ; Fri, 27 Jun 2014 18:27:28 -0700 (PDT) X-Received: by 10.52.29.236 with SMTP id n12mr19303725vdh.38.1403918848519; Fri, 27 Jun 2014 18:27:28 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp147841vcb; Fri, 27 Jun 2014 18:27:28 -0700 (PDT) X-Received: by 10.58.211.229 with SMTP id nf5mr22427072vec.19.1403918848183; Fri, 27 Jun 2014 18:27:28 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id u6si7211213vdo.34.2014.06.27.18.27.27 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 27 Jun 2014 18:27:28 -0700 (PDT) Received-SPF: none (google.com: xen-devel-bounces@lists.xen.org does not designate permitted sender hosts) client-ip=50.57.142.19; Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1X0hP9-0007UB-7y; Sat, 28 Jun 2014 01:26:11 +0000 Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1X0hP8-0007SP-9Y for xen-devel@lists.xen.org; Sat, 28 Jun 2014 01:26:10 +0000 Received: from [85.158.143.35:8011] by server-2.bemta-4.messagelabs.com id F3/D9-06539-1B91EA35; Sat, 28 Jun 2014 01:26:09 +0000 X-Env-Sender: roy.franz@linaro.org X-Msg-Ref: server-12.tower-21.messagelabs.com!1403918767!14437419!1 X-Originating-IP: [209.85.192.171] X-SpamReason: No, hits=0.0 required=7.0 tests=UPPERCASE_25_50 X-StarScan-Received: X-StarScan-Version: 6.11.3; banners=-,-,- X-VirusChecked: Checked Received: (qmail 14824 invoked from network); 28 Jun 2014 01:26:08 -0000 Received: from mail-pd0-f171.google.com (HELO mail-pd0-f171.google.com) (209.85.192.171) by server-12.tower-21.messagelabs.com with RC4-SHA encrypted SMTP; 28 Jun 2014 01:26:08 -0000 Received: by mail-pd0-f171.google.com with SMTP id fp1so5137559pdb.30 for ; Fri, 27 Jun 2014 18:26:07 -0700 (PDT) X-Received: by 10.68.99.4 with SMTP id em4mr8668978pbb.84.1403918766981; Fri, 27 Jun 2014 18:26:06 -0700 (PDT) Received: from rfranz-t520.local (c-24-10-97-91.hsd1.ca.comcast.net. [24.10.97.91]) by mx.google.com with ESMTPSA id eh4sm16637918pbc.79.2014.06.27.18.26.05 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 27 Jun 2014 18:26:06 -0700 (PDT) From: Roy Franz To: xen-devel@lists.xen.org, ian.campbell@citrix.com, stefano.stabellini@citrix.com, tim@xen.org, jbeulich@suse.com, keir@xen.org Date: Sat, 28 Jun 2014 02:25:34 +0100 Message-Id: <1403918735-30027-19-git-send-email-roy.franz@linaro.org> X-Mailer: git-send-email 2.0.0 In-Reply-To: <1403918735-30027-1-git-send-email-roy.franz@linaro.org> References: <1403918735-30027-1-git-send-email-roy.franz@linaro.org> Cc: Roy Franz , fu.wei@linaro.org, linaro-uefi@lists.linaro.org Subject: [Xen-devel] [PATCH RFC 18/19] Add assembler use support for efibind.h X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: roy.franz@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.170 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Archive: The C efi_entry() function returns the address of the FDT for XEN to use, so we add the EFI_STUB_ERROR define to efibind.h and make it includable in assembly files. EFI_STUB_ERROR is defined as ~0, which is an invalid address for a FDT to be loaded at. Signed-off-by: Roy Franz --- xen/include/asm-arm/arm64/efibind.h | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/xen/include/asm-arm/arm64/efibind.h b/xen/include/asm-arm/arm64/efibind.h index fe53a3b..ecc819d 100644 --- a/xen/include/asm-arm/arm64/efibind.h +++ b/xen/include/asm-arm/arm64/efibind.h @@ -21,6 +21,16 @@ Revision History #pragma pack() #endif +#define EFIERR(a) (0x8000000000000000 | a) +#define EFI_ERROR_MASK 0x8000000000000000 +#define EFIERR_OEM(a) (0xc000000000000000 | a) + +#define BAD_POINTER 0xFBFBFBFBFBFBFBFB +#define MAX_ADDRESS 0xFFFFFFFFFFFFFFFF + +#define EFI_STUB_ERROR MAX_ADDRESS + +#ifndef __ASSEMBLY__ // // Basic int types of various widths // @@ -96,13 +106,6 @@ typedef uint64_t UINTN; #define POST_CODE(_Data) -#define EFIERR(a) (0x8000000000000000 | a) -#define EFI_ERROR_MASK 0x8000000000000000 -#define EFIERR_OEM(a) (0xc000000000000000 | a) - - -#define BAD_POINTER 0xFBFBFBFBFBFBFBFB -#define MAX_ADDRESS 0xFFFFFFFFFFFFFFFF #define BREAKPOINT() while (TRUE); // Make it hang on Bios[Dbg]32 @@ -200,3 +203,4 @@ typedef uint64_t UINTN; #endif #endif +#endif