All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot-Users] passing bootargs to Linux on NIOS
@ 2004-08-05 10:45 Thomas Brand
  2004-08-05 13:42 ` Wolfgang Denk
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas Brand @ 2004-08-05 10:45 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-08-05 13:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-05 10:45 [U-Boot-Users] passing bootargs to Linux on NIOS Thomas Brand
2004-08-05 13:42 ` Wolfgang Denk

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.