-
Notifications
You must be signed in to change notification settings - Fork 7.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xtensa: xt-sim: CONFIG_BOOTARGS support #87295
base: main
Are you sure you want to change the base?
xtensa: xt-sim: CONFIG_BOOTARGS support #87295
Conversation
This change offers a more flexible approach in comparison to CONFIG_DYNAMIC_BOOTARGS, because the bootloader environment, as is in the case of Xtensa sim, has already done the work that get_bootargs() does. Signed-off-by: William Tambe <[email protected]>
This change enables the use of argc and argv with `main()`. Signed-off-by: William Tambe <[email protected]>
@dcpleung |
You can always exclude the board from the test. |
// Reserve stack space for | ||
// - argv array | ||
// - argument strings |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As for comments, we do /* */
style and not //
. Please replace all of these.
Which file should I change to exclude the board from the test ? |
There should be a |
@@ -188,6 +226,23 @@ _start: | |||
|
|||
#endif /* !XCHAL_HAVE_BOOTLOADER */ | |||
|
|||
#if defined(CONFIG_BOARD_XT_SIM) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI both SYS_iss_set_argv
and SYS_iss_argc
are available in QEMU
The 2nd change enables the use of argc and argv with
main()
.The 1st change is the prerequisite that makes prepare_main_args() a weak function,
as it offers a more flexible approach in comparison to CONFIG_DYNAMIC_BOOTARGS,
because the bootloader environment, as is in the case of Xtensa sim, has already done
the work that get_bootargs() does.