From: Wolfgang Denk Date: Sat, 18 Jun 2005 17:18:27 +0200 Subject: [U-Boot-Users] Access global data from standalone application In-Reply-To: Your message of "Fri, 17 Jun 2005 17:45:44 PDT." Message-ID: <20050618151832.22AFFC1510@atlas.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello, in message you wrote: > > > You can export and call in SA apps functions which perform operations ^^^^^^ ^^^^ ^^^^^^^^^ > > on flash_info[], but you cannot access flash_info[] or any other > > global variables directly. > > Confused. How do SA apps perform operations on exported data without > accessing them? Could you elaborate a little bit? I want to write a SA By calling functions in the U-Boot code which use the data. > app to print the protection info of all flash banks. I know flinfo can > do that. I just do some experiments. ;) Then just export and call the do_flinfo function. Why reinvent the wheel or duplicate already existing code? Best regards, Wolfgang Denk -- Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de The most exciting phrase to hear in science, the one that heralds new discoveries, is not "Eureka!" (I found it!) but "That's funny ..." -- Isaac Asimov