From patchwork Sun Jun 7 03:33:12 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bin Meng X-Patchwork-Id: 481695 X-Patchwork-Delegate: sjg@chromium.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 5E2BB14010F for ; Sun, 7 Jun 2015 13:33:58 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=UwzcrYTo; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B887C4B70B; Sun, 7 Jun 2015 05:33:54 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Kag6LFe7Gkmd; Sun, 7 Jun 2015 05:33:54 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3079A4B703; Sun, 7 Jun 2015 05:33:54 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C27934B703 for ; Sun, 7 Jun 2015 05:33:51 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qDVx21yz8grD for ; Sun, 7 Jun 2015 05:33:51 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-qk0-f178.google.com (mail-qk0-f178.google.com [209.85.220.178]) by theia.denx.de (Postfix) with ESMTPS id 664E84B6FC for ; Sun, 7 Jun 2015 05:33:47 +0200 (CEST) Received: by qkhg32 with SMTP id g32so61210668qkh.0 for ; Sat, 06 Jun 2015 20:33:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:from:to:cc:subject:date:mime-version:content-type; bh=sOHywpXz17o9cyNDbdMxTeSUVD4H0Qm4mdXw9I/TzFY=; b=UwzcrYToC3BrrhDiL/HU99sUnqN6xwwFChYcWRgFnA/flF6vlp50gH9513dlNO76CZ R7mo+hjN4H6d/XTxrpfwF28obGBwk6rxiUarcez0dUhWozifLqecvF1ln3U/E1LHt56j bOULotrtzlbKqhek57ysAH3wgtf+hq7N0Ni8JFxRdiUwCkwj4xoQhcivmRc3B2kFLEjl suVVF/GK2ZmPNycc95cDvQpMXgXu8eA6BsrDnhiJgzuApFJoVu9d79sllk36nH/nxZSC vgHo7jCHpC7zgHRbgiLVPQNib3Qp/yL3YArHffhaBoR6bfBoDQ3jJwq1MXDSXISMzIBO LYFg== X-Received: by 10.55.50.141 with SMTP id y135mr20496121qky.91.1433648026321; Sat, 06 Jun 2015 20:33:46 -0700 (PDT) Received: from mail.hotmail.com (blu004-wss1s3.hotmail.com. [134.170.2.218]) by mx.google.com with ESMTPSA id b109sm6199941qga.48.2015.06.06.20.33.42 (version=TLSv1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 06 Jun 2015 20:33:45 -0700 (PDT) Received: from BLU436-SMTP208 ([134.170.2.215]) by BLU004-WSS1S3.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.22751); Sat, 6 Jun 2015 20:33:41 -0700 X-TMN: [SSGueA2R69q9PJQ97NYIXD21mOAOqNLa] Message-ID: From: Bin Meng To: Simon Glass , U-Boot Mailing List Date: Sun, 7 Jun 2015 11:33:12 +0800 X-Mailer: git-send-email 1.8.2.1 X-OriginalArrivalTime: 07 Jun 2015 03:33:40.0695 (UTC) FILETIME=[BF4F0E70:01D0A0D2] MIME-Version: 1.0 Cc: Andrew Bradford Subject: [U-Boot] [PATCH v3 1/3] x86: Add Kconfig options to be used by arch/x86/cpu/config.mk X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Add RESET_SEG_START, RESET_SEG_SIZE and RESET_VEC_LOC Kconfig options and make arch/x86/cpu/config.mk use these options. Signed-off-by: Bin Meng Acked-by: Simon Glass Tested-by: Andrew Bradford Tested-by: Simon Glass --- Changes in v3: None Changes in v2: - New patch to add Kconfig options to be used by arch/x86/cpu/config.mk arch/x86/Kconfig | 15 +++++++++++++++ arch/x86/cpu/config.mk | 6 +++--- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 3506ba2..78996d0 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -75,6 +75,21 @@ config X86_RESET_VECTOR bool default n +config RESET_SEG_START + hex + depends on X86_RESET_VECTOR + default 0xffff0000 + +config RESET_SEG_SIZE + hex + depends on X86_RESET_VECTOR + default 0x10000 + +config RESET_VEC_LOC + hex + depends on X86_RESET_VECTOR + default 0xfffffff0 + config SYS_X86_START16 hex depends on X86_RESET_VECTOR diff --git a/arch/x86/cpu/config.mk b/arch/x86/cpu/config.mk index 4c4d0c7..1263221 100644 --- a/arch/x86/cpu/config.mk +++ b/arch/x86/cpu/config.mk @@ -10,8 +10,8 @@ CROSS_COMPILE ?= i386-linux- PLATFORM_CPPFLAGS += -D__I386__ # DO NOT MODIFY THE FOLLOWING UNLESS YOU REALLY KNOW WHAT YOU ARE DOING! -LDPPFLAGS += -DRESET_SEG_START=0xffff0000 -LDPPFLAGS += -DRESET_SEG_SIZE=0x10000 -LDPPFLAGS += -DRESET_VEC_LOC=0xfffffff0 +LDPPFLAGS += -DRESET_SEG_START=$(CONFIG_RESET_SEG_START) +LDPPFLAGS += -DRESET_SEG_SIZE=$(CONFIG_RESET_SEG_SIZE) +LDPPFLAGS += -DRESET_VEC_LOC=$(CONFIG_RESET_VEC_LOC) LDPPFLAGS += -DSTART_16=$(CONFIG_SYS_X86_START16) LDPPFLAGS += -DRESET_BASE="CONFIG_SYS_TEXT_BASE + (CONFIG_SYS_MONITOR_LEN - RESET_SEG_SIZE)"