From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1324 invoked by alias); 27 Aug 2007 23:54:29 -0000 Received: (qmail 814 invoked by uid 22791); 27 Aug 2007 23:54:26 -0000 X-Spam-Check-By: sourceware.org Received: from cip-68-118.bbs.surfcity.net (HELO agora.changind.com) (66.116.68.118) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 27 Aug 2007 23:54:20 +0000 Received: from [10.0.1.61] (cip-68-45.bbs.surfcity.net [66.116.68.45]) (authenticated bits=0) by agora.changind.com (8.12.11/8.12.11) with ESMTP id l7RNsI6C023848 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 27 Aug 2007 16:54:18 -0700 Message-ID: <46D3642A.6030801@changind.com> Date: Mon, 27 Aug 2007 23:54:00 -0000 From: Ben Wu User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: ecos-discuss@ecos.sourceware.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: [ECOS] workspace_end_init, workspace_end and flash.c X-SW-Source: 2007-08/txt/msg00148.txt.bz2 I've been working to integrate the RedBoot 2.04 Intel IXP42x NPE ethernet driver to work with the most recent Ecos code and ran into a problem where NPE "workspace" buffers were being overwritten causing the boot process to hang. I've tracked down the problem to the flash code where it allocates it's own workspace buffers. Specifically : > workspace_end = (unsigned char )(workspace_end_init - fisdir_size); In the 2.04 intel fork, the line reads > workspace_end = (unsigned char )(workspace_end - fisdir_size); why the change? It seems that by doing so the flash init assumes it always be called first and assumes any code that needs workspace will use the workspace_end pointer rather than the workspace_end_init pointer. It turns out that the NPE init code is being inserted before the flash init code with the same RedBoot_INIT_FIRST priority level. Is there anyway to fine tune insertion of initialization routines with a the same priority order? -- --------------------------- Ben Wu Design Engineer email: bwu@changind.com phone: (909) 596-7888 CHANG Industry, Inc. 1925 McKinley Ave. Suite F La Verne, CA 91750 -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss