- introduced an "argumetns" field in stage2_args to hold command line args from chaining loader,

- added some multiboot support code:
	- dump some of the passed info,
	- parse command line (skip the 'kernel' name and pass the rest to stage2_args.arguments),
- added an add_stage2_driver_settings() function which takes stage2_args.arguments and translates it into safe mode driver settings, a bit dumb for now.
This allows using qemu -kernel haiku_loader -append 'debug_screen true' and get debug output without having to enter the menu (once multiboot info is used to determine the boot device too).
The idea is to allow passing driver settings and using them to pass extra stuff (like 'force_keymap fr' and other stuff for demo), and to help automate tests ('run_test /bin/sometest').
This should answer Axel's question :)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32076 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
François Revol
2009-08-03 14:39:41 +00:00
parent 0b1db200df
commit 56c6c0fefb
10 changed files with 93 additions and 1 deletions
@@ -12,6 +12,7 @@
typedef struct stage2_args {
size_t heap_size;
const char **arguments;
struct platform_stage2_args platform;
} stage2_args ;