|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Minios-devel] [UNIKRAFT PATCH 2/3] lib/ukboot: Modify ctor iteration to end at uk_ctortab_end
On 27.08.19 19:28, Vlad-Andrei BĂDOIU (78692) wrote:
I would declare this as
extern const uk_ctor_func_t uk_ctortab_end;
Then you can re-use the already existing foreach macro which is
currently within <uk/plat/ctors.h>
/** Register a constructor function that is diff --git a/lib/ukboot/boot.c b/lib/ukboot/boot.c index 9738a912..935123c7 100644 --- a/lib/ukboot/boot.c +++ b/lib/ukboot/boot.c @@ -182,7 +182,7 @@ void ukplat_entry(int argc, char *argv[]) #endifuk_pr_info("Unikraft constructors table at %p\n", uk_ctortab); Logically, the '&' is de-referencing the end address of the list. It is too much in this line. However, I would prefer using the existing foreach macro instead. _______________________________________________ Minios-devel mailing list Minios-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/minios-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |