From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Wood Date: Mon, 8 Jul 2013 16:41:37 -0500 Subject: [U-Boot] Run a standalone application on a core other than 0 In-Reply-To: (from joao.fernandes@ist.utl.pt on Mon Jul 8 14:07:53 2013) Message-ID: <1373319697.8183.177@snotra> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 07/08/2013 02:07:53 PM, Jo?o Fernandes wrote: > Indeed, my code currently doesn't setup the TLB. So you're using the initial mapping that the U-Boot spin table code creates? It looks like that entry is missing MAS2_M. This needs to be fixed. The secondary IMA that U-Boot creates also needs to begin at effective address zero to be ePAPR-compliant. > Yes, U-Boot is still running on core 0. I'm looking for a > non-preemptive environment to run some > benchmarks, U-Boot is a bootloader, not a benchmarking environment. It is strongly recommended that you not leave U-Boot running on any CPU (including spin table code) if you're running benchmarks. For example, U-Boot will be continuously polling the serial port, which includes sync instructions that get broadcast to other CPUs. > Is there a way to link my standalone application with the functions in > U-Boot that manage the TLB, caches, etc.? You could in theory create a custom U-Boot instance that runs in this way -- but again, U-Boot is a bootloader and is not ideally suited to this task. What hardware init are you referring to? -Scott