From patchwork Mon Feb 24 14:52: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: 25200 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f197.google.com (mail-ve0-f197.google.com [209.85.128.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id CC1472066C for ; Mon, 24 Feb 2014 14:54:08 +0000 (UTC) Received: by mail-ve0-f197.google.com with SMTP id oz11sf834275veb.4 for ; Mon, 24 Feb 2014 06:54:08 -0800 (PST) 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=zd7cEtITh/dD9eo/peYK8Tyf/jtD4ZnYeSJqMFVkFtU=; b=bgMsSJKFO04dXGagdrX3pO2J0IusmDPkib3eGjZbfYHQFj5Vp6tO4nqVSlggcPlzGA tc2ScPWMHCCKWRp/83uXq0A3xnsMBidhNjCMEyQjtm3IiNYz2HE1j45bIvo3XvvRsblA mXjXKwRU8ATWW2fQqrQAcWFfSr+ffdBCp6qcHF/3vlgSvDVcIEnyjW545ahKRY+Tyyia /9rOAh5b2drlVWfh786DH8pr4HtArIJ7A0zC8hI9N/zf42Ng0SdLdK/CxzC/eQI+j4+l yPsOcaZxkIXFfAlVa5GfFf1gTa3s5Z+/q3E8+yiMRzJ/ZolAz3sh2ReOuTOR1F38Aear cSZw== X-Gm-Message-State: ALoCoQkXxWnaKaYYW1iNJKSo+piI4eR0zA7+oFRAT7GHYufDNGcvY3mf43MlFaKe/klTefgAsZe6 X-Received: by 10.236.120.11 with SMTP id o11mr9063231yhh.39.1393253648564; Mon, 24 Feb 2014 06:54:08 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.102.244 with SMTP id w107ls2023290qge.26.gmail; Mon, 24 Feb 2014 06:54:08 -0800 (PST) X-Received: by 10.220.47.10 with SMTP id l10mr191814vcf.56.1393253648447; Mon, 24 Feb 2014 06:54:08 -0800 (PST) Received: from mail-ve0-f171.google.com (mail-ve0-f171.google.com [209.85.128.171]) by mx.google.com with ESMTPS id wt4si5894975vcb.40.2014.02.24.06.54.08 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 24 Feb 2014 06:54:08 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.171 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.171; Received: by mail-ve0-f171.google.com with SMTP id oz11so1198617veb.16 for ; Mon, 24 Feb 2014 06:54:08 -0800 (PST) X-Received: by 10.221.27.133 with SMTP id rq5mr12927210vcb.9.1393253648360; Mon, 24 Feb 2014 06:54:08 -0800 (PST) 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.174.196 with SMTP id u4csp66758vcz; Mon, 24 Feb 2014 06:54:08 -0800 (PST) X-Received: by 10.220.225.71 with SMTP id ir7mr574969vcb.50.1393253647772; Mon, 24 Feb 2014 06:54:07 -0800 (PST) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id fv9si5897421vcb.20.2014.02.24.06.54.07 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 24 Feb 2014 06:54:07 -0800 (PST) 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 1WHwuA-0006AW-3u; Mon, 24 Feb 2014 14:53:14 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WHwu8-00069X-Q3 for xen-devel@lists.xenproject.org; Mon, 24 Feb 2014 14:53:13 +0000 Received: from [85.158.139.211:49003] by server-15.bemta-5.messagelabs.com id 00/3F-24395-8DC5B035; Mon, 24 Feb 2014 14:53:12 +0000 X-Env-Sender: julien.grall@linaro.org X-Msg-Ref: server-5.tower-206.messagelabs.com!1393253591!1341578!1 X-Originating-IP: [209.85.215.173] X-SpamReason: No, hits=0.0 required=7.0 tests=UPPERCASE_25_50 X-StarScan-Received: X-StarScan-Version: 6.9.16; banners=-,-,- X-VirusChecked: Checked Received: (qmail 6813 invoked from network); 24 Feb 2014 14:53:11 -0000 Received: from mail-ea0-f173.google.com (HELO mail-ea0-f173.google.com) (209.85.215.173) by server-5.tower-206.messagelabs.com with RC4-SHA encrypted SMTP; 24 Feb 2014 14:53:11 -0000 Received: by mail-ea0-f173.google.com with SMTP id n15so2037467ead.32 for ; Mon, 24 Feb 2014 06:53:10 -0800 (PST) X-Received: by 10.14.87.129 with SMTP id y1mr25241857eee.38.1393253590895; Mon, 24 Feb 2014 06:53:10 -0800 (PST) Received: from belegaer.uk.xensource.com. ([185.25.64.249]) by mx.google.com with ESMTPSA id x6sm64689130eew.20.2014.02.24.06.53.08 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Feb 2014 06:53:09 -0800 (PST) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Mon, 24 Feb 2014 14:52:49 +0000 Message-Id: <1393253572-7157-4-git-send-email-julien.grall@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1393253572-7157-1-git-send-email-julien.grall@linaro.org> References: <1393253572-7157-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 v2 3/6] 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.128.171 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 27ac8ce..dd190c9 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 __attribute__((noreturn)) __attribute__((format (printf, 1, 2))) early_panic(const char *fmt, ...) {while(1);} -#endif +#endif /* !CONFIG_EARLY_PRINTK */ #endif /* __ASSEMBLY__ */