Messages in this thread | | | Date | Tue, 2 Dec 2008 10:23:30 +0100 | From | Haavard Skinnemoen <> | Subject | Re: [RFC 5/8] param: arch_get_boot_command_line() |
| |
Rusty Russell <rusty@rustcorp.com.au> wrote: > On Monday 01 December 2008 23:48:07 Russell King wrote: > > So there's quite a bit which needs to be done to get at the command line. > > Basically, what's required is: > > > > - convert param struct to tag list > > - if no tag list, use default tag list > > - run machine specific fixups which may set memory layout > > - if memory layout has been set, kill off any memory atags to prevent it > > being overwritten > > - parse all atags which includes setting the command line if such a tag > > is found > > > > Then, and only then can you be sure that you have the right command line. > > Thanks for the clue donation. I've read the code harder now. Tricky.
I think avr32 might need something similar as it also gets the command line from a tag list. But we never really do anything tricky with those tags, so I think it should work to simply move the call to parse_tags() from setup_arch() into arch_get_boot_command_line().
Haavard
| |