From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Brand Date: Thu, 05 Aug 2004 12:45:43 +0200 Subject: [U-Boot-Users] passing bootargs to Linux on NIOS Message-ID: <41120FD7.9070002@imms.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi, I'm currently implementing the bootm command for the NIOS processor from Altera. I'd like to pass boot arguments to the kernel. I tried to figure out how it works in other architectures, but I'm still clueless. I call the function theKernel(...) with some arguments like I have seen it in other implementations. Now my question is, how do I access these arguments in the kernel?. I know the NIOS processor is passing the first 4 arguments in registers when calling a function as a subroutine. But in the linux kernel in main.c is another call in the function start_kernel() for a kernel specific setup [setup_arch()] which will move the window-pointer and so change the registerfile. Therefore I cannot access the registers directly. Or should I just define a piece of memory to put the arguments in? It will be hard coded in the kernel then. Any hints? Every answer will be appreciated. Thomas