From patchwork Thu Oct 13 02:40:53 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Pan X-Patchwork-Id: 119341 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 3CFA6B6F71 for ; Thu, 13 Oct 2011 13:41:03 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A296428856; Thu, 13 Oct 2011 04:41:01 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de 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 5EkC-9tKwsJz; Thu, 13 Oct 2011 04:41:01 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 095B6288D9; Thu, 13 Oct 2011 04:40:59 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 64359288D9 for ; Thu, 13 Oct 2011 04:40:57 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de 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 5oUfoO1ozKzV for ; Thu, 13 Oct 2011 04:40:56 +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-vx0-f172.google.com (mail-vx0-f172.google.com [209.85.220.172]) by theia.denx.de (Postfix) with ESMTPS id 23D3D28856 for ; Thu, 13 Oct 2011 04:40:54 +0200 (CEST) Received: by vcbfo1 with SMTP id fo1so245736vcb.3 for ; Wed, 12 Oct 2011 19:40:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.187.199 with SMTP id fu7mr1713772vdc.109.1318473653323; Wed, 12 Oct 2011 19:40:53 -0700 (PDT) Received: by 10.52.185.233 with HTTP; Wed, 12 Oct 2011 19:40:53 -0700 (PDT) In-Reply-To: <20111012073950.0C4B514094B0@gemini.denx.de> References: <20111012073950.0C4B514094B0@gemini.denx.de> Date: Thu, 13 Oct 2011 10:40:53 +0800 Message-ID: From: Peter Pan To: Wolfgang Denk Cc: u-boot@lists.denx.de Subject: Re: [U-Boot] Interrupt issue about bootvx command X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Hi Wolfgang, This is a customized board, which is very similar with Freescale's P1020RDB (which is p1_p2_rdb in u-boot), only we replace the process with a compatible one-core version. And the board support files are mostly copied from the p1_p2_rdb. And the following is my updated patch. My git does not have "git send-mail" supported, so I have to paste the formatted commit below. Sorry for that. From 9758bc34e8459c8b906029105e41fe8adf9e79ca Mon Sep 17 00:00:00 2001 From: Ke Pan Date: Thu, 13 Oct 2011 10:34:23 +0800 Subject: [PATCH] common/cmd_elf : Disable interrupts before boot vxWorks The vxWorks needs all interrupts to be disabled before its boot. --- common/cmd_elf.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) ((void (*)(void)) addr) (); diff --git a/common/cmd_elf.c b/common/cmd_elf.c index bf32612..a5ef9b4 100644 --- a/common/cmd_elf.c +++ b/common/cmd_elf.c @@ -228,6 +228,8 @@ int do_bootvx (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) printf ("## Using bootline (@ 0x%lx): %s\n", bootaddr, (char *) bootaddr); + printf("## Disableing interrupts ...\n"); + disable_interrupts(); printf ("## Starting vxWorks at 0x%08lx ...\n", addr);