2 * Copyright (C) 2001-2003 Hewlett-Packard Co.
3 * Contributed by Stephane Eranian <eranian@hpl.hp.com>
4 * Contributed by Chris Ahna <christopher.j.ahna@intel.com>
6 * This file is part of the ELILO, the EFI Linux boot loader.
8 * ELILO is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2, or (at your option)
13 * ELILO is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with ELILO; see the file COPYING. If not, write to the Free
20 * Software Foundation, 59 Temple Place - Suite 330, Boston, MA
23 * Please check out the elilo.txt for complete documentation on how
24 * to use this program.
35 UINTN legacy_free_boot;
36 } x86_64_global_config_t;
39 static x86_64_global_config_t x86_64_gconf;
41 static config_option_t sysdeps_global_options[]={
42 {OPT_BOOL, OPT_GLOBAL, L"legacy-free", NULL, NULL, &x86_64_gconf.legacy_free_boot}
46 * X86_64 operations that need to be done only once and just before
47 * entering the main loop of the loader
50 * -1 otherwise (will abort execution)
53 sysdeps_preloop_actions(EFI_HANDLE dev, CHAR16 **argv, INTN argc, INTN index, EFI_HANDLE image)
58 #define X86_64_CMDLINE_OPTIONS L""
61 sysdeps_get_cmdline_opts(VOID)
63 return X86_64_CMDLINE_OPTIONS;
67 sysdeps_getopt(INTN c, INTN optind, CHAR16 *optarg)
73 sysdeps_print_cmdline_opts(VOID)
79 x86_64_use_legacy_free_boot(VOID)
81 return x86_64_gconf.legacy_free_boot ? 1 : 0;
85 sysdeps_register_options(VOID)
89 ret = register_config_options(sysdeps_global_options,
90 sizeof(sysdeps_global_options)/sizeof(config_option_t),
91 OPTIONS_GROUP_GLOBAL);
93 /* no per image options yet */
94 if (ret == -1 ) return ret;
96 ret = register_config_options(sysdeps_image_options,
97 sizeof(sysdeps_image_options)/sizeof(config_option_t),