From patchwork Wed Mar 12 14:34:49 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 26134 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f197.google.com (mail-ob0-f197.google.com [209.85.214.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8DEF5236AC for ; Wed, 12 Mar 2014 14:38:19 +0000 (UTC) Received: by mail-ob0-f197.google.com with SMTP id wp18sf39146891obc.0 for ; Wed, 12 Mar 2014 07:38:19 -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=nH2SVkO1JwSbV4iRDmPpRtZ1pP17FUoOf5BQ4RYibC4=; b=UUPz6mNCiD4TPDQ448oWtRGi7mMGD13zbXVy1Y2PgThWqRRAHAGaff+IwY8pqk0pmj idCQBv/QNAP2kv/kcnVHRkNBqYXzxJa6uTqYu7a9pru844wDdcWUg++kn0ohYKksbSOR rnLL617MX+y3CRAwRiea6DQr5igp+vUHRMLxQARmFf8YCLfa4F+2gLyecw4V5bnwJQTp u65RdkaQsH56pt+k6IcibRZdWFOLJRynLgaemioVvHnJnyFPIURcjrO3MjpA8gtHUHOl NPq//U1aiacCFnaJWvKSzcwkAn/Ck+oQFuiOV+zu7VHAX88+SRmBnEr2xYUemFOYZpK2 MitA== X-Gm-Message-State: ALoCoQltOrBbnwf5Ez6q6xPVcJTk1U/2i1olFg2inTfXMoZJbz69Jve2QKAq8hX+sV7wvUGupImw X-Received: by 10.42.123.139 with SMTP id s11mr16107526icr.15.1394635099149; Wed, 12 Mar 2014 07:38:19 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.83.169 with SMTP id j38ls2936953qgd.10.gmail; Wed, 12 Mar 2014 07:38:19 -0700 (PDT) X-Received: by 10.221.40.10 with SMTP id to10mr13470622vcb.22.1394635098937; Wed, 12 Mar 2014 07:38:18 -0700 (PDT) Received: from mail-vc0-f181.google.com (mail-vc0-f181.google.com [209.85.220.181]) by mx.google.com with ESMTPS id xt2si6844359vcb.33.2014.03.12.07.38.18 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 12 Mar 2014 07:38:18 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.181 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.181; Received: by mail-vc0-f181.google.com with SMTP id id10so3835652vcb.26 for ; Wed, 12 Mar 2014 07:38:18 -0700 (PDT) X-Received: by 10.58.238.35 with SMTP id vh3mr32599619vec.16.1394635098565; Wed, 12 Mar 2014 07:38:18 -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.220.78.9 with SMTP id i9csp293282vck; Wed, 12 Mar 2014 07:38:18 -0700 (PDT) X-Received: by 10.58.31.136 with SMTP id a8mr2029084vei.20.1394635098150; Wed, 12 Mar 2014 07:38:18 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id l2si6833583vcf.118.2014.03.12.07.38.15 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 12 Mar 2014 07:38:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of xen-devel-bounces@lists.xen.org designates 50.57.142.19 as permitted sender) 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 1WNkGO-0001hd-9j; Wed, 12 Mar 2014 14:36:08 +0000 Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WNkGN-0001hD-AV for xen-devel@lists.xenproject.org; Wed, 12 Mar 2014 14:36:07 +0000 Received: from [193.109.254.147:2113] by server-5.bemta-14.messagelabs.com id 1E/A6-16688-6D070235; Wed, 12 Mar 2014 14:36:06 +0000 X-Env-Sender: julien.grall@linaro.org X-Msg-Ref: server-13.tower-27.messagelabs.com!1394634908!1177744!1 X-Originating-IP: [74.125.82.42] X-SpamReason: No, hits=0.0 required=7.0 tests=UPPERCASE_25_50 X-StarScan-Received: X-StarScan-Version: 6.11.1; banners=-,-,- X-VirusChecked: Checked Received: (qmail 2026 invoked from network); 12 Mar 2014 14:35:08 -0000 Received: from mail-wg0-f42.google.com (HELO mail-wg0-f42.google.com) (74.125.82.42) by server-13.tower-27.messagelabs.com with RC4-SHA encrypted SMTP; 12 Mar 2014 14:35:08 -0000 Received: by mail-wg0-f42.google.com with SMTP id y10so11362112wgg.1 for ; Wed, 12 Mar 2014 07:35:08 -0700 (PDT) X-Received: by 10.180.78.164 with SMTP id c4mr7989969wix.57.1394634907975; Wed, 12 Mar 2014 07:35:07 -0700 (PDT) Received: from belegaer.uk.xensource.com. ([185.25.64.249]) by mx.google.com with ESMTPSA id r1sm16524040wia.5.2014.03.12.07.35.06 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 12 Mar 2014 07:35:07 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Wed, 12 Mar 2014 14:34:49 +0000 Message-Id: <1394634891-27906-4-git-send-email-julien.grall@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1394634891-27906-1-git-send-email-julien.grall@linaro.org> References: <1394634891-27906-1-git-send-email-julien.grall@linaro.org> Cc: stefano.stabellini@citrix.com, Julien Grall , tim@xen.org, ian.campbell@citrix.com Subject: [Xen-devel] [PATCH v3 3/5] xen/arm: Rename EARLY_PRINTK compile option to CONFIG_EARLY_PRINTK 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: julien.grall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.181 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) 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: Most of common compile option start with CONFIG_. Rename EARLY_PRINTK option to CONFIG_EARLY_PRINTK to be compliant. This option will be used in common code (eg console) later. Signed-off-by: Julien Grall Acked-by: Ian Campbell --- xen/arch/arm/Rules.mk | 2 +- xen/arch/arm/arm32/head.S | 18 +++++++++--------- xen/arch/arm/arm64/head.S | 18 +++++++++--------- xen/include/asm-arm/early_printk.h | 6 +++--- 4 files changed, 22 insertions(+), 22 deletions(-) diff --git a/xen/arch/arm/Rules.mk b/xen/arch/arm/Rules.mk index aaa203e..57f2eb1 100644 --- a/xen/arch/arm/Rules.mk +++ b/xen/arch/arm/Rules.mk @@ -93,7 +93,7 @@ ifneq ($(EARLY_PRINTK_INC),) EARLY_PRINTK := y endif -CFLAGS-$(EARLY_PRINTK) += -DEARLY_PRINTK +CFLAGS-$(EARLY_PRINTK) += -DCONFIG_EARLY_PRINTK CFLAGS-$(EARLY_PRINTK_INIT_UART) += -DEARLY_PRINTK_INIT_UART CFLAGS-$(EARLY_PRINTK) += -DEARLY_PRINTK_INC=\"debug-$(EARLY_PRINTK_INC).inc\" CFLAGS-$(EARLY_PRINTK) += -DEARLY_PRINTK_BAUD=$(EARLY_PRINTK_BAUD) diff --git a/xen/arch/arm/arm32/head.S b/xen/arch/arm/arm32/head.S index 96230ac..1b1801b 100644 --- a/xen/arch/arm/arm32/head.S +++ b/xen/arch/arm/arm32/head.S @@ -34,7 +34,7 @@ #define PT_UPPER(x) (PT_##x & 0xf00) #define PT_LOWER(x) (PT_##x & 0x0ff) -#if (defined (EARLY_PRINTK)) && (defined (EARLY_PRINTK_INC)) +#if (defined (CONFIG_EARLY_PRINTK)) && (defined (EARLY_PRINTK_INC)) #include EARLY_PRINTK_INC #endif @@ -59,7 +59,7 @@ */ /* Macro to print a string to the UART, if there is one. * Clobbers r0-r3. */ -#ifdef EARLY_PRINTK +#ifdef CONFIG_EARLY_PRINTK #define PRINT(_s) \ adr r0, 98f ; \ bl puts ; \ @@ -67,9 +67,9 @@ 98: .asciz _s ; \ .align 2 ; \ 99: -#else /* EARLY_PRINTK */ +#else /* CONFIG_EARLY_PRINTK */ #define PRINT(s) -#endif /* !EARLY_PRINTK */ +#endif /* !CONFIG_EARLY_PRINTK */ .arm @@ -149,7 +149,7 @@ common_start: b 2b 1: -#ifdef EARLY_PRINTK +#ifdef CONFIG_EARLY_PRINTK ldr r11, =EARLY_UART_BASE_ADDRESS /* r11 := UART base address */ teq r12, #0 /* Boot CPU sets up the UART too */ bleq init_uart @@ -330,7 +330,7 @@ paging: /* Now we can install the fixmap and dtb mappings, since we * don't need the 1:1 map any more */ dsb -#if defined(EARLY_PRINTK) /* Fixmap is only used by early printk */ +#if defined(CONFIG_EARLY_PRINTK) /* Fixmap is only used by early printk */ /* Non-boot CPUs don't need to rebuild the fixmap itself, just * the mapping from boot_second to xen_fixmap */ teq r12, #0 @@ -492,7 +492,7 @@ ENTRY(relocate_xen) mov pc, lr -#ifdef EARLY_PRINTK +#ifdef CONFIG_EARLY_PRINTK /* Bring up the UART. * r11: Early UART base address * Clobbers r0-r2 */ @@ -537,7 +537,7 @@ putn: hex: .ascii "0123456789abcdef" .align 2 -#else /* EARLY_PRINTK */ +#else /* CONFIG_EARLY_PRINTK */ init_uart: .global early_puts @@ -545,7 +545,7 @@ early_puts: puts: putn: mov pc, lr -#endif /* !EARLY_PRINTK */ +#endif /* !CONFIG_EARLY_PRINTK */ /* * Local variables: diff --git a/xen/arch/arm/arm64/head.S b/xen/arch/arm/arm64/head.S index 31afdd0..c97c194 100644 --- a/xen/arch/arm/arm64/head.S +++ b/xen/arch/arm/arm64/head.S @@ -30,7 +30,7 @@ #define PT_DEV 0xe71 /* nG=1 AF=1 SH=10 AP=01 NS=1 ATTR=100 T=0 P=1 */ #define PT_DEV_L3 0xe73 /* nG=1 AF=1 SH=10 AP=01 NS=1 ATTR=100 T=1 P=1 */ -#if (defined (EARLY_PRINTK)) && (defined (EARLY_PRINTK_INC)) +#if (defined (CONFIG_EARLY_PRINTK)) && (defined (EARLY_PRINTK_INC)) #include EARLY_PRINTK_INC #endif @@ -71,7 +71,7 @@ /* Macro to print a string to the UART, if there is one. * Clobbers x0-x3. */ -#ifdef EARLY_PRINTK +#ifdef CONFIG_EARLY_PRINTK #define PRINT(_s) \ adr x0, 98f ; \ bl puts ; \ @@ -79,9 +79,9 @@ 98: .asciz _s ; \ .align 2 ; \ 99: -#else /* EARLY_PRINTK */ +#else /* CONFIG_EARLY_PRINTK */ #define PRINT(s) -#endif /* !EARLY_PRINTK */ +#endif /* !CONFIG_EARLY_PRINTK */ /*.aarch64*/ @@ -174,7 +174,7 @@ common_start: b 2b 1: -#ifdef EARLY_PRINTK +#ifdef CONFIG_EARLY_PRINTK ldr x23, =EARLY_UART_BASE_ADDRESS /* x23 := UART base address */ cbnz x22, 1f bl init_uart /* Boot CPU sets up the UART too */ @@ -343,7 +343,7 @@ paging: /* Now we can install the fixmap and dtb mappings, since we * don't need the 1:1 map any more */ dsb sy -#if defined(EARLY_PRINTK) /* Fixmap is only used by early printk */ +#if defined(CONFIG_EARLY_PRINTK) /* Fixmap is only used by early printk */ /* Non-boot CPUs don't need to rebuild the fixmap itself, just * the mapping from boot_second to xen_fixmap */ cbnz x22, 1f @@ -489,7 +489,7 @@ ENTRY(relocate_xen) ret -#ifdef EARLY_PRINTK +#ifdef CONFIG_EARLY_PRINTK /* Bring up the UART. * x23: Early UART base address * Clobbers x0-x1 */ @@ -536,7 +536,7 @@ putn: hex: .ascii "0123456789abcdef" .align 2 -#else /* EARLY_PRINTK */ +#else /* CONFIG_EARLY_PRINTK */ init_uart: .global early_puts @@ -544,7 +544,7 @@ early_puts: puts: putn: ret -#endif /* EARLY_PRINTK */ +#endif /* !CONFIG_EARLY_PRINTK */ /* * Local variables: diff --git a/xen/include/asm-arm/early_printk.h b/xen/include/asm-arm/early_printk.h index 100ae23..5ef2ec4 100644 --- a/xen/include/asm-arm/early_printk.h +++ b/xen/include/asm-arm/early_printk.h @@ -12,7 +12,7 @@ #include -#ifdef EARLY_PRINTK +#ifdef CONFIG_EARLY_PRINTK /* need to add the uart address offset in page to the fixmap address */ #define EARLY_UART_VIRTUAL_ADDRESS \ @@ -22,7 +22,7 @@ #ifndef __ASSEMBLY__ -#ifdef EARLY_PRINTK +#ifdef CONFIG_EARLY_PRINTK void early_puts(const char *s); void early_printk(const char *fmt, ...) @@ -42,7 +42,7 @@ static inline void noreturn __attribute__((format (printf, 1, 2))) early_panic(const char *fmt, ...) {while(1);} -#endif +#endif /* !CONFIG_EARLY_PRINTK */ #endif /* __ASSEMBLY__ */