All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Brand <thomas.brand@imms.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] passing bootargs to Linux on NIOS
Date: Thu, 05 Aug 2004 12:45:43 +0200	[thread overview]
Message-ID: <41120FD7.9070002@imms.de> (raw)

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

             reply	other threads:[~2004-08-05 10:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-05 10:45 Thomas Brand [this message]
2004-08-05 13:42 ` [U-Boot-Users] passing bootargs to Linux on NIOS Wolfgang Denk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=41120FD7.9070002@imms.de \
    --to=thomas.brand@imms.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.