[linux] Add command line arguments

Support qemu-like arguments for network setup:
--net driver_name[,setting=value]*

and global settings:
--settings setting=value[,setting=value]*

Signed-off-by: Piotr Jaroszyński <p.jaroszynski@gmail.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Piotr Jaroszyński
2010-05-31 19:07:13 +02:00
committed by Michael Brown
parent 91fb434bda
commit ddef2e1bc1
4 changed files with 227 additions and 0 deletions

View File

@@ -16,6 +16,9 @@ _start:
pushl %edi // argv -> C arg2
pushl %esi // argc -> C arg1
call save_args
/* Our main doesn't use any arguments */
call main
movl %eax, %ebx // rc -> syscall arg1