bootloader: Add an arguments_count field to stage2_args

Some boot platforms pass a non-NULL-terminated list of args
to the loader, so store the count here to avoid having to copy
the list itself.
This commit is contained in:
François Revol 2013-10-15 21:36:07 +02:00
parent fc3b9496eb
commit bc1184c253
1 changed files with 1 additions and 0 deletions

View File

@ -13,6 +13,7 @@
typedef struct stage2_args {
size_t heap_size;
const char **arguments;
int32 arguments_count;
struct platform_stage2_args platform;
} stage2_args ;