summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>2001-09-07 08:52:26 +0000
committerdfr <dfr@FreeBSD.org>2001-09-07 08:52:26 +0000
commitb750cc500ad6f9a9f2613e3047aa3f5b3dea17be (patch)
tree13a392ee838a63a3e1db650b764b87c2c383d009 /sys
parent622326c63f3f1ddcb403114fe79b534bb7460cee (diff)
downloadFreeBSD-src-b750cc500ad6f9a9f2613e3047aa3f5b3dea17be.zip
FreeBSD-src-b750cc500ad6f9a9f2613e3047aa3f5b3dea17be.tar.gz
Set currdev and loaddev variables.
Diffstat (limited to 'sys')
-rw-r--r--sys/boot/efi/loader/main.c8
-rw-r--r--sys/boot/ia64/efi/main.c8
2 files changed, 8 insertions, 8 deletions
diff --git a/sys/boot/efi/loader/main.c b/sys/boot/efi/loader/main.c
index 2940d8a..0d8aa12 100644
--- a/sys/boot/efi/loader/main.c
+++ b/sys/boot/efi/loader/main.c
@@ -106,12 +106,12 @@ efi_main (EFI_HANDLE image_handle, EFI_SYSTEM_TABLE *system_table)
bootfile = GetEnvironmentVariable(ARCENV_BOOTFILE);
if (bootfile)
setenv("bootfile", bootfile, 1);
+#endif
- env_setenv("currdev", EV_VOLATILE, arc_fmtdev(&currdev),
- arc_setcurrdev, env_nounset);
- env_setenv("loaddev", EV_VOLATILE, arc_fmtdev(&currdev), env_noset,
+ env_setenv("currdev", EV_VOLATILE, efi_fmtdev(&currdev),
+ efi_setcurrdev, env_nounset);
+ env_setenv("loaddev", EV_VOLATILE, efi_fmtdev(&currdev), env_noset,
env_nounset);
-#endif
setenv("LINES", "24", 1); /* optional */
diff --git a/sys/boot/ia64/efi/main.c b/sys/boot/ia64/efi/main.c
index 2940d8a..0d8aa12 100644
--- a/sys/boot/ia64/efi/main.c
+++ b/sys/boot/ia64/efi/main.c
@@ -106,12 +106,12 @@ efi_main (EFI_HANDLE image_handle, EFI_SYSTEM_TABLE *system_table)
bootfile = GetEnvironmentVariable(ARCENV_BOOTFILE);
if (bootfile)
setenv("bootfile", bootfile, 1);
+#endif
- env_setenv("currdev", EV_VOLATILE, arc_fmtdev(&currdev),
- arc_setcurrdev, env_nounset);
- env_setenv("loaddev", EV_VOLATILE, arc_fmtdev(&currdev), env_noset,
+ env_setenv("currdev", EV_VOLATILE, efi_fmtdev(&currdev),
+ efi_setcurrdev, env_nounset);
+ env_setenv("loaddev", EV_VOLATILE, efi_fmtdev(&currdev), env_noset,
env_nounset);
-#endif
setenv("LINES", "24", 1); /* optional */
OpenPOWER on IntegriCloud