From bc1184c253f71ac3ae5c1f4099fccc22776ca3a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Tue, 15 Oct 2013 21:36:07 +0200 Subject: [PATCH] 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. --- headers/private/kernel/boot/stage2_args.h | 1 + 1 file changed, 1 insertion(+) diff --git a/headers/private/kernel/boot/stage2_args.h b/headers/private/kernel/boot/stage2_args.h index f4becc3c0b..ac05591a13 100644 --- a/headers/private/kernel/boot/stage2_args.h +++ b/headers/private/kernel/boot/stage2_args.h @@ -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 ;