Set currdev and loaddev variables.

This commit is contained in:
Doug Rabson 2001-09-07 08:52:26 +00:00
parent f77b61980e
commit fc2b065c41
2 changed files with 10 additions and 10 deletions

View File

@ -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;

View File

@ -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;