Set currdev and loaddev variables.
This commit is contained in:
parent
f77b61980e
commit
fc2b065c41
@ -106,13 +106,13 @@ efi_main (EFI_HANDLE image_handle, EFI_SYSTEM_TABLE *system_table)
|
||||
bootfile = GetEnvironmentVariable(ARCENV_BOOTFILE);
|
||||
if (bootfile)
|
||||
setenv("bootfile", bootfile, 1);
|
||||
|
||||
env_setenv("currdev", EV_VOLATILE, arc_fmtdev(&currdev),
|
||||
arc_setcurrdev, env_nounset);
|
||||
env_setenv("loaddev", EV_VOLATILE, arc_fmtdev(&currdev), env_noset,
|
||||
env_nounset);
|
||||
#endif
|
||||
|
||||
env_setenv("currdev", EV_VOLATILE, efi_fmtdev(&currdev),
|
||||
efi_setcurrdev, env_nounset);
|
||||
env_setenv("loaddev", EV_VOLATILE, efi_fmtdev(&currdev), env_noset,
|
||||
env_nounset);
|
||||
|
||||
setenv("LINES", "24", 1); /* optional */
|
||||
|
||||
archsw.arch_autoload = efi_autoload;
|
||||
|
@ -106,13 +106,13 @@ efi_main (EFI_HANDLE image_handle, EFI_SYSTEM_TABLE *system_table)
|
||||
bootfile = GetEnvironmentVariable(ARCENV_BOOTFILE);
|
||||
if (bootfile)
|
||||
setenv("bootfile", bootfile, 1);
|
||||
|
||||
env_setenv("currdev", EV_VOLATILE, arc_fmtdev(&currdev),
|
||||
arc_setcurrdev, env_nounset);
|
||||
env_setenv("loaddev", EV_VOLATILE, arc_fmtdev(&currdev), env_noset,
|
||||
env_nounset);
|
||||
#endif
|
||||
|
||||
env_setenv("currdev", EV_VOLATILE, efi_fmtdev(&currdev),
|
||||
efi_setcurrdev, env_nounset);
|
||||
env_setenv("loaddev", EV_VOLATILE, efi_fmtdev(&currdev), env_noset,
|
||||
env_nounset);
|
||||
|
||||
setenv("LINES", "24", 1); /* optional */
|
||||
|
||||
archsw.arch_autoload = efi_autoload;
|
||||
|
Loading…
x
Reference in New Issue
Block a user