Lines Matching refs:stage2

17 	* stage2/cmdline.c (run_script): Fix a reversed conditional.
23 * stage2/fsys_ext2fs.c (ext2fs_read): Handle sparse files.
27 * stage2/stage2.c (cmain): Terminate DEFAULT_FILE with NUL
53 * stage2/Makefile.am: Likewise.
77 * stage2/stage2.c (run_menu): Change the fallback handling to
82 * stage2/shared.h (DEFAULT_FILE_BUF): New macro.
91 * stage2/cmdline.c (run_script): Use FALLBACK_ENTRYNO instead of
94 * stage2/builtins.c (fallback_entry): Removed.
116 * stage2/ufs2.h (int8_t): Renamed to ...
150 * stage2/ufs2.h (__uint8_t): Remove.
158 * stage2/Makefile.am (noinst_HEADERS): Added ufs2.h.
176 * stage2/fsys_xfs.c (next_dentry): Use arrays of arrays instead of
188 * stage2/stage2.c (cmain): Initialize DEFAULT_FILE to an empty
193 * stage2/fsys_fat.c (fat_mount): Ignore the 3rd bit of a media
204 * stage2/builtins.c (install_func): If DEST_DRIVE is a hard
226 * stage2/smp-imps.h (imps_any_new_apics): Removed.
233 * stage2/Makefile.am (libgrub_a_CFLAGS): Remove
243 * stage2/char_io.c (memcheck) [GRUB_UTIL]: Likewise.
245 * stage2/builtins.c (blocklist_func): Likewise.
273 * stage2/cmdline.c (run_script): Fix a reversed conditional.
279 * stage2/fsys_ext2fs.c (ext2fs_read): Handle sparse files.
283 * stage2/stage2.c (cmain): Terminate DEFAULT_FILE with NUL
309 * stage2/Makefile.am: Likewise.
333 * stage2/stage2.c (run_menu): Change the fallback handling to
338 * stage2/shared.h (DEFAULT_FILE_BUF): New macro.
347 * stage2/cmdline.c (run_script): Use FALLBACK_ENTRYNO instead of
350 * stage2/builtins.c (fallback_entry): Removed.
372 * stage2/ufs2.h (int8_t): Renamed to ...
406 * stage2/ufs2.h (__uint8_t): Remove.
414 * stage2/Makefile.am (noinst_HEADERS): Added ufs2.h.
422 * stage2/char_io.c (grub_isspace): Use a switch sentense instead
428 * stage2/asm.S (stop_floppy): Call pusha and popa outside the
440 * stage2/char_io.c (safe_parse_maxint): Disable for stage 1.5.
447 * stage2/size_test: Added a check for ufs2_stage1_5.
449 * stage2/shared.h (STAGE2_ID_UFS2_STAGE1_5): New macro.
452 * stage2/filesys.h (FSYS_UFS2_NUM): New macro.
459 * stage2/disk_io.c (fsys_table): Added an ufs2 entry.
461 * stage2/builtins.c (setup_func): Added ufs2 into the
464 * stage2/Makefile.am (libgrub_a_SOURCES): Added fsys_ufs2.c.
479 * stage2/fsys_ufs2.c: New file.
480 * stage2/ufs2.h: Likewise.
500 * stage2/char_io.c (convert_to_ascii): Remove "%b" support.
511 * stage2/char_io.c (grub_memcmp): Define for stage1.5 too.
513 * stage2/fsys_iso9660.c (iso9660_mount): Use memcmp() instead of
533 * stage2/Makefile.am (.exec): Likewise.
539 * stage2/disk_io.c (set_device): Use CH instead of *DEVICE to
564 * stage2/boot.c: Imply --no-mem-option for Linux kernels with
569 * stage2/char_io.c [!GRUB_UTIL] (memcpy): New function. It is
572 * stage2/disk_io.c (print_completions): Simplified conditionals
577 * stage2/common.c (init_bios_info): Check if BOOT_DRIVE is a
582 * stage2/start_eltorito.S: New file.
584 * stage2/stage2.c (run_menu): Use GRUB_INVALID_DRIVE instead of
587 * stage2/shared.h (STAGE2_ID_ISO9660_STAGE1_5): New macro.
593 * stage2/fsys_iso9660.c: New file.
594 * stage2/iso9660.h: Likewise.
596 * stage2/filesys.h (FSYS_ISO9660_NUM): New macro.
602 * stage2/disk_io.c (fsys_table) [FSYS_ISO9660]: Added iso9660.
615 * stage2/cmdline.c (init_cmdline): Use GRUB_INVALID_DRIVE.
617 * stage2/builtins.c (install_func): Use GRUB_INVALID_DRIVE.
620 * stage2/bios.c (biosdisk): Don't fall back to the CHS mode
627 * stage2/asm.S (biosdisk_int13_extensions): Take a word
631 * stage2/Makefile.am (noinst_HEADERS): Added iso9660.h.
663 * stage2/asm.S (stop_floppy): Use INT 13, AH=00h to stop the
668 * stage2/serial.c (serial_putchar): Handle the character code
681 * stage2/size_test (check): Don't use the local statement any
707 * stage2/fsys_reiserfs.c (REISER3FS_SUPER_MAGIC_STRING): New
725 * stage2/xfs.h (__int8_t): Renamed to ...
767 * stage2/terminfo.c (ti_set_term): Use a pointer to struct
773 * stage2/terminfo.h (ti_set_term): Updated.
776 * stage2/shared.h (struct linux_kernel_header): New member,
779 * stage2/boot.c (load_initrd): If the boot protocol is greater
785 * stage2/fsys_ext2fs.c (ext2_is_fast_symlink): New function.
813 * stage2/Makefile.am (pre_stage2_exec_ASFLAGS): Renamed to ...
846 * stage2/disk_io.c (set_device) [SUPPORT_NETBOOT]: Added support
861 * stage2/fsys_fat.c: Fix missdetection of ext2fs as fatfs.
886 * stage2/fsys_reiserfs.c (read_tree_node): Fixed a typo; only
910 * stage2/fsys_reiserfs.c (reiserfs_mount): Clear the node cache.
924 * stage2/shared.h (KEY_NPAGE): Changed to 0x5100.
929 * stage2/boot.c (load_image): Check if DATA_LEN plus SECTOR_SIZE
937 * stage2/fsys_reiserfs.c (struct reiserfs_journal_header):
943 * stage2/builtins.c [SUPPORT_SERIAL] (terminfo_func): Unescape
946 * stage2/terminfo.h (TERMINFO_LEN): Changed to 40.
963 * stage2/mb_info.h (struct AddrRangeDesc): Specified with the
965 * stage2/shared.h (struct mmar_desc): Likewise.
971 * stage2/bios.c (get_diskinfo): PhoenixBIOS 4.0 Revision 6.0
981 * stage2/pc_slice.h (PC_SLICE_TYPE_DELL_UTIL): New macro.
988 * stage2/terminfo.c (term): Don't use a C99-style initializer.
993 * stage2/disk_io.c (part_start): Use unsigned long to support
996 * stage2/shared.h (part_start): Likewise.
1013 * stage2/fsys_ext2fs.c (ext2fs_dir): Initialize STR_CHK to shut
1015 * stage2/fsys_minix.c (minix_dir): Likewise.
1019 * stage2/asm.S (gateA20): First, try a BIOS call (INT 15H,
1031 * stage2/builtins.c (install_func): Store the fixed disk flag of
1041 * stage2/char_io.c (init_page): Change the software name from
1047 * stage2/builtins.c (embed_func): When checking if the disk can
1052 * stage2/stage2.c (print_entry): Put a right arrow, if the entry
1057 * stage2/disk_io.c (set_device): If '(n' is given, add 'd' into
1065 * stage2/term.h (struct term_entry): Remove the member
1072 * stage2/stage2.c (run_menu): Call setcursor instead of
1076 * stage2/shared.h (nocursor): Removed.
1079 * stage2/hercules.c (herc_cursor_state): New variable.
1084 * stage2/char_io.c (get_cmdline): Turn on the cursor at the
1089 * stage2/asm.S (console_cursor_state): New variable.
1103 * stage2/builtins.c (builtin_terminfo): Likewise.
1108 * stage2/freebsd.h (RB_GDB): New macro.
1112 * stage2/boot.c (bsd_boot): Set the bits of RB_MULTIPLE, RB_GDB
1133 * stage2/Makefile.am (noinst_HEADERS): Added terminfo.h and
1137 * stage2/terminfo.c: New file.
1138 * stage2/terminfo.h: Likewise.
1139 * stage2/tparm.c: Likewise.
1140 * stage2/tparm.h: Likewise.
1141 * stage2/stage2.c (get_line_from_config): Fix handling of
1143 * stage2/char_io.c (grub_putstr): New function.
1146 * stage2/builtins.c [SUPPORT_SERIAL]: Include terminfo.h.
1151 * stage2/serial.c (serial_gotoxy): Use ti_cursor_address.
1158 * stage2/disk_io.c (rawread): Make sure that SECTOR is valid.
1164 * stage2/asm.S (console_cls): Write spaces to the entire screen
1177 * stage2/serial.c (serial_translate_key_sequence): Added two new
1179 * stage2/asm.S (translation_table): Added entries for KEY_PPAGE
1181 * stage2/stage2.c (run_menu): Deal with Page Up and Page Down.
1187 * stage2/builtins.c (setup_func): Added missing space to --force-lba
1192 * stage2/asm.S (gateA20): Output a dummy command (0xff), as a
1207 * stage2/serial.c (fill_input_buf): Take a new argument NOWAIT.
1222 * stage2/term.h (color_state): New enum.
1230 * stage2/hercules.c (herc_highlight_state): Removed.
1235 * stage2/console.c (console_highlight_state): Removed.
1240 * stage2/serial.c (serial_highlight): Renamed to
1246 * stage2/stage2.c (print_entry): Set color states using new
1249 * stage2/stage2.c (run_menu): Reverse if (!) to if () for
1254 * stage2/boot.c (load_image): Rewrite the Linux booting support
1260 * stage2/shared.h (LINUX_MAX_SETUP_SECTS): Set to 64.
1284 * stage2/asm.S [!STAGE1_5] (linux_data_tmp_addr): New variable.
1294 * stage2/boot.c (load_image): Recognize newer FreeBSD kernels.
1295 * stage2/i386-elf.h (EI_OSABI): New macro.
1302 * stage2/shared.h (boot_part_offset): Removed.
1304 * stage2/disk_io.c (set_bootdev): Copy the partition information
1308 * stage2/builtins.c (boot_func): Don't copy the partition
1319 * stage2/serial.c [!GRUB_UTIL] (inb): Added a delay into this
1330 * stage2/serial.c [!GRUB_UTIL] (serial_hw_fetch): Fixed a typo.
1340 * stage2/builtins.c [SUPPORT_SERIAL || SUPPORT_HERCULES]
1349 * stage2/serial.c [!GRUB_UTIL] (serial_hw_fetch): Fixed the
1358 * stage2/disk_io.c [SUPPORT_NETBOOT] (GRUB): Defined.
1366 * stage2/fsys_xfs.c (le32): Don't use bswap, but use xchgb and
1390 * stage2/console.c: New file.
1391 * stage2/term.h: Likewise.
1393 * stage2/Makefile.am (noinst_HEADERS): Added term.h.
1397 * stage2/asm.S (console_putchar): Rewritten from scratch.
1406 * stage2/builtins.c: Include term.h.
1414 * stage2/char_io.c: Include term.h.
1435 * stage2/cmdline.c (init_cmdline): Set COUNT_LINES to -1.
1437 * stage2/common.c [!STAGE1_5] (err_list): Removed
1440 * stage2/hercules.c: Rewritten almost from scratch.
1441 * stage2/hercules.h (herc_putchar): Removed.
1447 * stage2/serial.c: Rewritten almost from scratch.
1448 * stage2/serial.h: Likewise.
1450 * stage2/shared.h [GRUB_UTIL] (DISP_UL): Set to the same value
1482 * stage2/stage2.c: Include term.h.
1544 * stage2/builtins.c (boot_func): Load the boot partition
1552 * stage2/disk_io.c (boot_part_addr): Initialized with zero
1557 * stage2/builtins.c (real_root_func): New function.
1573 * stage2/boot.c (load_image): In the case of Multiboot a.out
1591 * stage2/builtins.c (boot_func): If DEBUG is true, print
1627 * stage2/boot.c (load_image): For Linux, check if DATA_LEN is
1633 * stage2/boot.c (load_image): For Linux, don't check if the
1641 * stage2/builtins.c [SUPPORT_SERIAL] (terminal_func): Added a
1656 * stage2/builtins.c [SUPPORT_SERIAL] (terminal_func): Set
1670 * stage2/builtins.c [GRUB_UTIL] (dump_func): New function.
1679 * stage2/builtins.c (setup_func): Don't embed a drive number, if
1700 * stage2/boot.c (linux_mem_size): New variable.
1706 * stage2/char_io.c (safe_parse_maxint): Use ERR_NUMBER_OVERFLOW
1708 * stage2/common.c [!STAGE1_5] (err_list): Added
1710 * stage2/shared.h (ERR_NUMBER_OVERFLOW): New constant.
1714 * stage2/stage2.c (run_menu): Call cls outside the loop to run
1716 * stage2/cmdline.c (run_script): Prompt a user's intervention,
1738 * stage2/builtins.c (help_func): Show all the commands runnable
1745 * stage2/builtins.c (pager_func): New function.
1753 * stage2/char_io.c (max_lines) [!STAGE1_5]: New variable.
1761 * stage2/cmdline.c (enter_cmdline): If USE_PAGER is true, set
1764 * stage2/shared.h (max_lines) [!STAGE1_5]: Declared.
1770 * stage2/fsys_jfs.c (jfs_read) [STAGE1_5]: Set and reset
1772 * stage2/fsys_xfs.c (xfs_read) [STAGE1_5]: Likewise.
1774 * stage2/stage1_5.c (saved_sector): Initialized with -1.
1781 * stage2/builtins.c (setup_func): Add a VSTa fs entry into
1786 * stage2/shared.h (BUILTIN_HELP_LIST): New macro. Used for
1789 * stage2/builtins.c (builtin_blocklist): Added the attribute
1836 * stage2/shared.h (BUILTIN_HIDDEN): Renamed to ...
1848 * stage2/builtins.c (displaymem_func): Use hex digits to display
1854 * stage2/Makefile.am (libgrub_a_CFLAGS): Fixed a typo.
1860 * util/grub-image.in: Check stage2 instead of stage2.c to
1872 * stage2/fsys_minix.c (minix_dir): Fixed bug getting filenames
1875 * stage2/char_io.c (get_cmdline, cl_refresh): If TERMINAL_DUMB
1906 * stage2/shared.h (use_preset_menu): Declared.
1907 * stage2/stage2.c [PRESET_MENU_STRING || SUPPORT_DISKLESS]
1913 * stage2/common.c [SUPPORT_DISKLESS]
1916 * stage2/stage2.c [SUPPORT_DISKLESS] (preset_menu): Set to the
1929 * stage2/stage2.c [PRESET_MENU_STRING] (open_preset_menu):
2032 * stage2/builtins.c [SUPPORT_NETBOOT] (GRUB): Defined.
2034 * stage2/cmdline.c [SUPPORT_DISKLESS] (GRUB): Defined.
2035 * stage2/common.c [SUPPORT_DISKLESS] (GRUB): Likewise.
2044 * stage2/md5.c (md5_password): Ensure the password exists before
2059 * stage2/start.S (lba_mode) [NO_BUGGY_BIOS_IN_THE_WORLD]:
2064 * stage2/bios.c (get_diskinfo): Clear out the structure DRP
2070 * stage2/char_io.c [STAGE1_5] (grub_memset): Defined.
2084 * stage2/builtins.c (builtin_geometry): Add extra space
2097 * stage2/fsys_fat.c (fat_read): Fix the contradictory comment.
2102 * stage2/builtins.c (displayapm_func): Don't use multi-line
2105 * stage2/cmdline.c (print_cmdline_message): Likewise.
2108 * stage2/smp-imps.c (imps_read_config_table): Add a break
2113 * stage2/serial.c (serial_port): Initialize with 0 instead of
2121 * stage2/shared.h (ERR_NO_DISK_SPACE): New constant.
2122 * stage2/common.c (err_list): Added an entry for
2125 * stage2/builtins.c (embed_func): Use ERR_NO_DISK_SPACE instead
2139 * stage2/disk_io.c (set_partition_hidden_flag): Complete rewrite
2148 * stage2/asm.S: Likewise.
2149 * stage2/boot.c: Likewise.
2150 * stage2/builtins.c: Likewise.
2151 * stage2/char_io.c: Likewise.
2152 * stage2/cmdline.c: Likewise.
2153 * stage2/common.c: Likewise.
2154 * stage2/disk_io.c: Likewise.
2155 * stage2/fat.h: Likewise.
2156 * stage2/filesys.h: Likewise.
2157 * stage2/freebsd.h: Likewise.
2158 * stage2/fsys_ext2fs.c: Likewise.
2159 * stage2/fsys_fat.c: Likewise.
2160 * stage2/fsys_ffs.c: Likewise.
2161 * stage2/gunzip.c: Likewise.
2162 * stage2/i386-elf.h: Likewise.
2163 * stage2/mb_header.h: Likewise.
2164 * stage2/mb_info.h: Likewise.
2165 * stage2/pc_slice.h: Likewise.
2166 * stage2/shared.h: Likewise.
2167 * stage2/stage1_5.c: Likewise.
2168 * stage2/stage2.c: Likewise.
2169 * stage2/start.S: Likewise.
2173 * stage2/builtins.c (terminal_func) [!SUPPORT_SERIAL]: Disable
2184 * stage2/Makefile.am (noinst_HEADERS): Added jfs.h and xfs.h.
2199 * stage2/builtins.c (setup_func): Add items for JFS and XFS into
2201 * stage2/disk_io.c (fsys_table): Added entries for JFS and XFS.
2202 * stage2/filesys.h [FSYS_JFS] (FSYS_JFS_NUM): Set to 1.
2213 * stage2/shared.h (STAGE2_ID_JFS_STAGE1_5): New macro.
2217 * stage2/fsys_jfs.c: New file.
2218 * stage2/fsys_xfs.c: Likewise.
2219 * stage2/jfs.h: Likewise.
2220 * stage2/xfs.h: Likewise.
2224 * stage2/apm.S: Always disconnect from APM. Written by Erich
2247 * stage2/asm.S (get_diskinfo_floppy): Removed (by cpp).
2248 * stage2/bios.c (get_diskinfo_floppy): Removed.
2257 * stage2/serial.c (serial_exists): Likewise.
2258 * stage2/serial.h (serial_exists): New prototype.
2259 * stage2/shared.h (grub_error_t): ERR_NEED_SERIAL is added.
2260 * stage2/builtins.c (terminal_func) [SUPPORT_SERIAL]: If a
2263 * stage2/common.c (err_list): Added an item for ERR_NEED_SERIAL.
2276 * stage2/fsys_reiserfs.c (reiserfs_super_block): Updated
2284 * stage2/fsys_reiserfs.c (reiserfs_mount): Don't look at
2292 * stage2/fsys_reiserfs.c (reiserfs_dir): Set errnum to
2299 * stage2/asm.S [!STAGE1_5] (grub_halt): Set the level of APM
2309 * stage2/common.c (init_bios_info): Ignore zero-length memory
2314 * stage2/Makefile.am (libgrub_a_CFLAGS): Enable USE_MD5_PASSWORDS
2354 * stage2/boot.c (load_initrd) [!NO_DECOMPRESSION]: Set
2361 * stage2/compile: New file.
2378 * stage2/Makefile.am (pre_stage2_exec_ASFLAGS): New variable.
2401 * stage2/i386-elf.h (Elf32_Shdr): New type.
2402 * stage2/boot.c (load_image): Added ELF symbol loading support.
2406 * stage2/char_io.c [STAGE1_5] (grub_strcmp): Defined, even
2408 * stage2/fsys_vstafs.c [!FSYS_VSTAFS]: Don't define anything.
2423 * stage2/configure.in (--disable-vstafs): New option.
2424 * stage2/Makefile.am (noinst_HEADERS): Added vstafs.h.
2433 * stage2/disk_io.c (fsys_table): Added an entry for vstafs.
2434 * stage2/filesys.h [FSYS_VSTAFS] (FSYS_VSTAFS_NUM): Defined as
2441 * stage2/pc_slice.h (PC_SLICE_TYPE_VSTAFS): New macro.
2442 * stage2/shared.h (STAGE2_ID_VSTAFS_STAGE1_5): Likewise.
2445 * stage2/vstafs.h: New file.
2446 * stage2/fsys_vstafs.c: Likewise.
2451 * stage2/builtins.c (configfile_func): Added a prototype.
2464 * stage2/boot.c (load_image): If the image is a Multiboot ELF OS
2491 * stage2/stage2.c (print_entries_raw): New function.
2507 * stage2/shared.h (ENTRY): Remove unnecessary `##'.
2516 * stage2/boot.c (load_image): Don't cast entry_addr to an int, or
2522 * stage2/boot.c (load_initrd): Avoid the last 64kb for
2540 * stage2/stage2.c (cmain): If the default entry is wrong, set it
2548 * stage2/builtins.c (kernel_func) [!AUTO_LINUX_MEM_OPT]: Add
2554 * stage2/builtins.c (chainloader_func): Don't check if the
2575 * stage2/Makefile.am (noinst_HEADERS): Added hercules.h.
2580 * stage2/asm.S [!STAGE1_5] (set_attrib) Renamed to ...
2582 * stage2/builtins.c [SUPPORT_HERCULES] (terminal_func): Added
2586 * stage2/char_io.c [SUPPORT_HERCULES]: Include <hercules.h>.
2596 * stage2/shared.h (console_set_attrib): Declared.
2598 * stage2/stage2.c (run_menu) [SUPPORT_HERCULES]: Added hercules
2600 * stage2/hercules.h: New file.
2601 * stage2/hercules.c: Likewise.
2616 * stage2/asm.S [STAGE1_5] (chain_stage2): Save the second sector
2617 of stage2 in %ecx temporarily, and set %ebp to %ecx after
2638 * stage2/shared.h (LINUX_INITRD_MAX_ADDRESS): Changed from
2643 * stage2/builtins.c (savedefault_func)
2649 * stage2/builtins.c (savedefault_func)
2650 [!SUPPORT_DISKLESS && !GRUB_UTIL]: Check if the stage2 id is
2653 * stage2/stage2.c (cmain): If DEFAULT_ENTRY is out of entries,
2663 * stage2/asm.S [STAGE1_5] (chain_stage2): Set %ebp to
2665 * stage2/disk_io.c [STAGE1_5] (disk_read_hook): Defined.
2669 * stage2/fsys_ext2fs.c (ext2fs_read) [STAGE1_5]: Likewise.
2670 * stage2/fsys_fat.c (fat_read) [STAGE1_5]: Likewise.
2671 * stage2/fsys_ffs.c (ffs_read) [STAGE1_5]: Likewise.
2672 * stage2/fsys_minix.c (minix_read) [STAGE1_5]: Likewise.
2673 * stage2/fsys_reiserfs.c (reiserfs_read) [STAGE1_5]: Likewise.
2686 * stage2/pc_slice.h (PC_SLICE_TYPE_LINUX_RAID): New macro.
2687 * stage2/fsys_ext2fs.c (ext2fs_mount): Add a check for
2706 * stage2/builtins.c (setkey_func): When checking if TO_KEY and
2739 * stage2/builtins.c [SUPPORT_NETBOOT] (ifconfig_func): Always
2748 * stage2/builtins.c [SUPPORT_NETBOOT] (ifconfig_func): New
2772 * stage2/shared.h (BOOTSEC_BPB_HIDDEN_SECTORS): New macro.
2774 * stage2/builtins.c (chainloader_func): If CURRENT_PARTITION is
2783 * stage2/builtins.c (boot_func): In the chain-loading mode,
2789 * stage2/builtins.c (embed_func): Call open_partition() even for
2795 * stage2/disk_io.c (make_saved_active): Change the variable name
2802 * stage2/fsys_ext2.c (ext2fs_mount): Detect ext2 partitions in
2804 * stage2/pc_slice.h (FS_ADOS): New Macro from OpenBSD/NetBSD.
2811 * stage2/disk_io.c (rawread): Check if there is a EZD partition
2822 * stage2/disk_io.h (rawwrite): New function.
2824 * stage2/pc_slice.h (PC_SLICE_TYPE_EZD): New macro.
2825 * stage2/builtins.c (embed_info): New variable to store the
2839 * stage2/builtins.c (chainloader_func): Set ERRNUM to
2857 * stage2/bios.c (get_diskinfo): Append 16 bytes dummy data to
2863 * stage2/disk_io.c (next_partition): Mask out bsd partition sub
2881 * stage2/fsys_minix.c (minix_mount): Corrected the check for
2887 * stage2/fsys_reiserfs.c: Handle items with old version key on
2897 * stage2/common.c (init_bios_info) [!STAGE1_5]: Don't call
2911 * stage2/builtins.c (testvbe_func): Don't set the bit 14 of a
2920 * stage2/asm.S [!STAGE1_5] (track_int13): Don't replace an int13
2931 * stage2/stage2.c [PRESET_MENU_STRING] (preset_menu): New
2948 * stage2/asm.S [!STAGE1_5] (set_vbe_mode): Add a missing `$'
2953 * stage2/bios.c (get_diskinfo): If BIOS supports LBA but doesn't
2960 * stage2/disk_io.c (make_saved_active): Set ERRNUM to
2972 * stage2/mb_header.h (multiboot_header): Added new fields,
2978 * stage2/mb_info.h (multiboot_info): Added new fields,
2983 * stage2/shared.h (vbe_controller): New structure.
2988 * stage2/asm.S [!STAGE1_5] (get_vbe_controller_info): New
2996 * stage2/builtins.c (testvbe_func): New function.
3009 * stage2/asm.S [STAGE1_5]: Don't include setjmp.S or apm.S.
3018 * stage2/builtins.c (md5crypt_func): Use all bits of currticks ()
3024 * stage2/apm.S (get_apm_info): Fix a serious typo: prot_to_real
3029 * stage2/builtins.c (setup_func): When invoking install with an
3066 * stage2/md5.c (check_md5_password): Removed.
3072 * stage2/md5.h (check_md5_password): Changed to just a macro.
3075 * stage2/char_io.c [!STAGE1_5] (grub_strstr): Rewriten, because
3077 * stage2/builtins.c [USE_MD5_PASSWORDS] (md5crypt_func): New
3093 * stage2/builtins.c (displayapm_func): New function.
3105 * stage2/mb_info.h (apm_info): New structure.
3108 * stage2/asm.S (apm_bios_info): New variable.
3110 * stage2/apm.S: New file.
3111 * stage2/common.c (init_bios_info) [!STAGE1_5]: Added APM BIOS
3113 * stage2/shared.h (apm_bios_info): Declared.
3115 * stage2/Makefile.am (EXTRA_DIST): Added apm.S.
3123 * stage2/setjmp.S: New file.
3124 * stage2/Makefile.am (EXTRA_DIST): Added setjmp.S.
3125 * stage2/asm.S: Include "setjmp.S".
3127 * stage2/setjmp.S (grub_setjmp): ... here.
3128 * stage2/asm.S (grub_longjmp): Moved to ...
3129 * stage2/setjmp.S (grub_longjmp): ... here.
3133 * stage2/Makefile.am (noinst_HEADERS): Added md5.h. Reported by
3146 * stage2/Makefile.am (libgrub_a_SOURCES): Added md5.c.
3148 * stage2/md5.c: New file.
3149 * stage2/shared.h (password_t): New type.
3154 * stage2/cmdline.c (run_script): Don't show commands that have
3156 * stage2/builtins.c (password_type): New variable.
3165 * stage2/stage2.c (run_menu): Call check_password to check password.
3175 * stage2/builtins.c (setkey_func): Clear the all elements of
3181 * stage2/boot.c (load_image): When handling Linux cmdline, don't
3198 * stage2/stage2.c (cmain): Set CONFIG_ENTRIES to MBI.DRIVES_ADDR
3200 * stage2/common.c (init_bios_info) [!STAGE1_5]: Added support
3203 * stage2/mb_info.h (drive_info): New structure.
3211 * stage2/asm.S (get_rom_config_table): New function.
3212 * stage2/shared.h (get_rom_config_table): Declared.
3253 * stage2/builtins.c (setkey_func): If TO_KEY is NULL (i.e. the
3279 * stage2/start.S (copy_buffer): Use pusha and popa instead of
3287 * stage2/builtins.c (setkey_func): Check if
3303 * stage2/builtins.c (find_func): Clear ERRNUM after the last
3317 * stage2/builtins.c (serial_func): Unswap the setting of "speed"
3322 * stage2/builtins.c (setup_func): Append "... " to the
3329 * stage2/disk_io.c (real_open_partition): Make sure that buf_geom
3360 * stage2/fsys_reiserfs.c (reiserfs_mount): Compare PART_LENGTH
3392 * stage2/fsys_reiserfs.c (reiserfs_mount): Check if the length
3404 * stage2/builtins.c (partnew_func): New function.
3413 * stage2/builtins.c (find_func): New variable GOT_FILE is set to
3424 * stage2/disk_io.c (check_BSD_parts): Removed.
3432 * stage2/shared.h (next_partition): Declared.
3442 * stage2/char_io.c [!STAGE1_5] (get_cmdline) [!SUPPORT_SERIAL]:
3445 * stage2/builtins.c [!SUPPORT_NETBOOT] (bootp_func): Undefined.
3480 * stage2/builtins.c (setup_func): New nested function,
3483 Don't hardcode "/boot/grub/stage1", "/boot/grub/stage2", or
3494 * stage2/boot.c (load_image): Copy SRC to DEST first, and append
3500 * stage2/fsys_minix.c (minix_mount): Check if CURRENT_SLICE is a
3503 * stage2/pc_slice.h (PC_SLICE_TYPE_LINUX_MINIX): New macro.
3510 * stage2/start.S [STAGE1_5] (notification_string): Print
3512 [!STAGE1_5] (notification_string): Print "Loading stage2"
3513 instead of "stage2 ".
3542 * stage2/builtins.c (terminal_func): Rename TIMEOUT to TO, to
3548 * stage2/char_io.c [!STAGE1_5] (auto_fill): New variable.
3559 * stage2/shared.h (auto_fill): Declared.
3560 * stage2/stage2.c (run_menu): In the menu interface, disable the
3574 * stage2/asm.S (saved_entryno): New variable.
3578 * stage2/builtins.c (current_entryno): New variable.
3584 * stage2/shared.h (STAGE2_SAVED_ENTRYNO): New macro.
3591 * stage2/stage2.c (run_menu): Set CURRENT_ENTRYNO to FIRST_ENTRY
3593 * stage2/start.S (start): Save the sector number of the second
3602 * stage2/start.S (lba_mode) [!NO_BUGGY_BIOS_IN_THE_WORLD]:
3604 * stage2/bios.c (biosdisk) [!NO_BUGGY_BIOS_IN_THE_WORLD]:
3612 * stage2/char_io.c (print_error) [!STAGE1_5]: Print ERRNUM like
3622 * stage2/stage2.c (run_menu) [GRUB_UTIL]: Set DISP_UP and
3628 * stage2/shared.h (ACS_ULCORNER): Always define this ourselves,
3640 * stage2/char_io.c [SUPPORT_SERIAL] (serial_cls): If the
3642 * stage2/builtins.c (terminal_func) [SUPPORT_SERIAL]: When
3650 * stage2/stage2.c (run_menu): If SHOW_MENU is zero, print a
3664 * stage2/builtins.c (install_func) [GRUB_UTIL]: Open a Stage 2
3669 * stage2/stage2.c (run_menu): Don't use either `p' or `n' to
3678 * stage2/stage2.c (run_menu): Setup and use disp_up, disp_down
3685 * stage2/stage2.c (set_line): Go back one char, which is
3691 * stage2/builtins.c (serial_func): --speed handling: corrected
3696 * stage2/builtins.c (terminal_func): Added two new options,
3698 * stage2/char_io.c [!STAGE1_5] (getkey): Use logical AND
3728 * stage2/char_io.c [!STAGE1_5] (get_cmdline): Extensively
3736 * stage2/shared.h (TERMINAL_DUMB): Likewise.
3749 * stage2/asm.S (console_putchar): Don't print a carriage return
3751 * stage2/char_io.c (grub_putchar): Call grub_putchar with the
3773 * stage2/builtins.c (install_func): If DEST_DRIVE is a hard
3779 * stage2/char_io.c (translate_keycode) [SUPPORT_SERIAL]: Don't
3786 * stage2/asm.S [!STAGE1_5] (track_int13): Don't save/restore
3808 * stage2/char_io.c [!STAGE1_5] (translate_keycode): New
3813 * stage2/stage2.c (run_menu): Wrap getkey with the macro
3818 * stage2/shared.h (translate_keycode): Declared.
3822 * stage2/builtins.c [GRUB_UTIL]: Include stdio.h before
3845 * stage2/builtins.c (serial_func) [SUPPORT_SERIAL]: Added
3851 * stage2/cmdline.c (restart_cmdline_env): New variable.
3856 * stage2/shared.h (BUILTIN_SCRIPT): New macro.
3873 * stage2/Makefile.am (libgrub_a_CFLAGS): Added
3878 * stage2/asm.S [!STAGE1_5] (cls): Renamed to ...
3884 * stage2/builtins.c (terminal_func): If the bit flag
3887 * stage2/char_io.c [!STAGE1_5] (gotoxy): New function.
3893 * stage2/serial.h (serial_cls): Declared.
3896 * stage2/shared.h (console_cls): Likewise.
3899 * stage2/stage2.c (print_entries): If serial terminal is
3930 * stage2/builtins.c [SUPPORT_SERIAL]: Include serial.h.
3937 * stage2/char_io.c [SUPPORT_SERIAL]: Include serial.h.
3957 * stage2/nbi.h (NBI_DEST_ADDR): Changed to 0x10000.
3964 * stage2/nbloader.S: Added .code16 directive at the start of the
3998 * stage2/serial.h [GRUB_UTIL] (set_serial_device): Declared.
4002 * stage2/asm.S (codestart) [SUPPORT_DISKLESS]: Don't reset a
4009 * stage2/serial.c: New file.
4010 * stage2/serial.h: Likewise.
4011 * stage2/shared.h (serial_getkey): Moved to stage2/serial.h.
4014 * stage2/Makefile.am (noinst_HEADERS): Added serial.h.
4030 * stage2/builtins.c [GRUB_UTIL]: Include stdio.h.
4039 of Stage 2 under an OS, if the new option "--stage2" is
4048 (setup_func) [GRUB_UTIL]: If --stage2 is specified, set
4058 * util/grub-install.in: Specify the option "--stage2" for the
4063 * stage2/fsys_fat.c (fat_superblock): clust_eof_marker added.
4073 * stage2/fsys_reiserfs.c (journal_init): Fixed calculation of
4078 * stage2/fsys_reiserfs.c: Symlink support added.
4125 * stage2/asm.S (linux_boot): Add 3 into %ecx and shift %ecx to
4131 * stage2/fsys_reiserfs.c (block_read): Changed the variable "len"
4138 * stage2/shared.h [!ASM_FILE] (multi_boot): Change the name of
4146 * stage2/builtins.c (install_func): Rename CONFIG_FILE to
4151 * stage2/char_io.c (convert_to_ascii): Rename the internal
4156 * stage2/stage2.c (run_menu): Rename the internal variable
4159 * stage2/disk_inode_ffs.h: Check if BYTE_MSF is defined before
4161 * stage2/fsys_ext2fs.c (ext2fs_dir): Check if E2DEBUG is
4179 * stage2/asm.S (check_int13_extensions): Fixed the effect of
4180 the --force-lba switch in stage2/stage1_5.
4184 * stage2/fsys_fat.c (fat_mount): Fixed calculation of num_clust.
4191 * stage2/asm.S [!STAGE1_5] (linux_text_len): New variable.
4200 * stage2/boot.c (load_image): Set LINUX_TEXT_LEN to TEXT_LEN,
4202 * stage2/shared.h (LINUX_VID_MODE_OFFSET): Removed.
4211 * stage2/asm.S [!STAGE1_5] (linux_boot): Set the length of moved
4217 * stage2/boot.c (load_image): Rewrite the Linux support code
4223 * stage2/shared.h (LINUX_MAGIC_SIGNATURE): New macro.
4254 * stage2/boot.c (load_image): When getting the text length of a
4266 * stage2/asm.S (grub_putchar): Renamed to ...
4272 * stage2/char_io.c [!STAGE1_5] (getkey): New function.
4275 * stage2/shared.h [!STAGE1_5] (terminal): Declared.
4284 * stage2/builtins.c (terminal): New global variable. The default
4295 * stage2/Makefile.am (libgrub_a_CFLAGS): Added
4297 * stage2/builtins.c [GRUB_UTIL]: Include device.h.
4330 * stage2/shared.h (no_floppy): Removed.
4349 * stage2/boot.c (load_image): Take an additional argument
4354 * stage2/shared.h (load_image): Added the new argument.
4355 * stage2/builtins.c (kernel_func): If `--no-mem-option' is
4366 * stage2/stage2.c (run_menu): Initialize CUR_ENTRY at the
4375 * stage2/builtins.c (show_menu): New global variable.
4379 * stage2/shared.h (show_menu): Declared.
4390 * stage2/mb_info.h (AddrRangeDesc): Use one 64bits field instead
4394 * stage2/builtins.c (displaymem_func): Print BaseAddr >> 32,
4398 * stage2/common.c (fakemap): Adjusted to the new definition of
4415 * stage2/boot.c (load_image): Pass a mem option to Linux, only
4420 * stage2/compile: Removed.
4426 * stage2/boot.c (load_image): Don't remove the vga option after
4431 * stage2/asm.S (grub_halt): Use jmp instead of jc, if INT 15
4439 * stage2/builtins.c (halt_func): New function.
4445 * stage2/asm.S (grub_halt): New function.
4447 * stage2/shared.h (grub_halt): Declared.
4454 * stage2/stage2.c (run_menu): Don't display the menu if the
4491 * stage2/fsys_reiserfs.c: Added journaling to reiser.
4521 * stage2/asm.S (check_int13_extensions): Check the bitmap only
4523 * stage2/bios.c (get_diskinfo): Get rid of the wrong check for
4537 * stage2/cmdline.c (enter_cmdline) [SUPPORT_DISKLESS]: Redisplay
4540 * stage2/cmdline.c: Include <shared.h> instead of "shared.h".
4545 * stage2/builtins.c (setup_func): Check if INSTALL_DRIVE is a
4571 * stage2/asm.S (chain_stage1) [!ABSOLUTE_WITHOUT_ASTERISK]:
4578 * stage2/shared.h (grub_memmove): Prototype to use void *.
4579 * stage2/char_io.c (grub_memmove): Define likewise.
4595 * stage2/cmdline.c (enter_cmdline): Don't give errors on empty
4598 * stage2/common.c (err_list): Clean up wordings slightly.
4607 * stage2/builtins.c (tftpserver_func): New function.
4613 * stage2/asm.S (codestart): Fix a typo: DISKLESS_SUPPORT ->
4615 * stage2/nbloader.S: Fix the image length and the memory length
4619 * stage2/shared.h (STACKOFF): Enclosed with parentheses.
4632 * stage2/Makefile.am (noinst_HEADERS): Added nbi.h.
4656 * stage2/asm.S (install_partition): Set to 0xFFFFFF instead of
4661 * stage2/common.c: Include <shared.h> instead of "shared.h",
4669 * stage2/nbloader.S: New file.
4670 * stage2/pxeloader.S: Likewise.
4671 * stage2/nbi.h: Likewise.
4701 * stage2/asm.S (set_int13_handler): Don't use MBI to get the
4719 * stage2/common.c (mmap_avail_at): New function, abstracted out
4745 * stage2/pc_slice.h (PC_SLICE_TYPE_LINUX_EXTENDED): New macro.
4751 * stage2/common.c (init_bios_info) [!STAGE1_5]: When the memory
4761 * stage2/common.c [!STAGE1_5] (extended_memory): New global
4771 * stage2/shared.h [!STAGE1_5] (extended_memory): Declared.
4772 * stage2/boot.c (load_image): Always pass the "mem=" option to a
4787 * stage2/builtins.c (setup_func): Use SECTOR_BITS instead of
4798 * stage2/builtins.c (auth): New global variable.
4809 * stage2/common.c (err_list): Added an entry for ERR_PRIVILEGED.
4810 * stage2/stage2.c (run_menu): If AUTH is true, show the messages
4817 * stage2/shared.h (grub_error_t): Added a new constant
4972 * stage2/common.c (err_list): Added message for ERR_UNALIGNED.
4973 * stage2/shared.h [!STAGE1_5] (disk_read_hook,disk_read_func): New
4976 * stage2/disk_io.c (rawread) [!STAGE1_5]: Call disk_read_func with
4978 * stage2/builtin.c (disk_read_print_func): Print offset and length.
5014 * stage2/asm.S (force_lba): New variable.
5015 * stage2/bios.c (get_diskinfo): Don't use #ifdef for
5018 * stage2/builtins.c (install_func): Check if a new option
5038 * stage2/shared.h (STAGE2_FORCE_LBA): New macro.
5059 * stage2/Makefile.am (libgrub_a_SOURCES): Added fsys_reiserfs.c.
5067 * stage2/disk_io.c (fsys_table): Added reiserfs entry.
5068 * stage2/filesys.h (FSYS_REISERFS_NUM): New macro.
5072 * stage2/builtins.c (setup_func): Added reiserfs to
5074 * stage2/shared.h (STAGE2_ID_REISERFS_STAGE1_5): New macro.
5077 * stage2/fsys_reiserfs.c: New file.
5079 * stage2/builtins.c (embed_func): Call open_device instead of
5085 * stage2/filesys.h (fsys_table): New entry embed_func.
5087 * stage2/disk_io.c (fsys_table): Fill embed_func entries. The
5089 * stage2/fsys_ffs.c (ffs_embed): New function.
5091 * stage2/shared.h (SECTOR_SHIFT): New constant with
5093 * stage2/shared.h [!NO_BLOCK_FILES] (block_files): No longer
5095 * stage2/disk_io.c [!NO_BLOCK_FILES] (block_files): Likewise.
5103 * stage2/fsys_fat.c (log2): New inline function.
5115 * stage2/stage2.c (run_menu): In the case where C is `o', check
5130 * stage2/builtins.c (kernel_func): Added missing ``size''
5135 * stage2/boot.c (load_initrd): Mask the address with 0x3FFFFFFF
5148 * stage2/boot.c (load_initrd): Subtract 0x1000 (one page size)
5157 * stage2/boot.c (load_image): Added an optional argument
5175 * stage2/shared.h (load_image): Added the argument
5177 * stage2/builtins.c (kernel_func): Added a new option,
5189 * stage2/stage2.c (run_menu) [GRUB_UTIL]: Removed a nested
5191 * stage2/builtins.c (unhide_func): Don't modify SAVED_DRIVE or
5194 * stage2/disk_io.c (set_partition_hidden_flag): Use
5203 * stage2/pc_slice.h (PC_SLICE_TYPE_HIDDEN_FLAG): Move the
5211 * stage2/builtins.c (setup_func): Don't read a stage 1.5 to get
5218 * stage2/common.c (init_bios_info): Removed a nested
5223 * stage2/builtins.c (setup_func): Change each of the messages
5228 * stage2/char_io.c (convert_to_ascii) [!STAGE1_5]: Accept 'X'
5251 * stage2/Makefile.am (nodist_pkgdata_DATA): Renamed to ...
5279 * stage2/builtins.c (color_func): Return 1 if safe_parse_maxint
5317 * stage2/disk_io.c [!STAGE1_5] (print_fsys_type): Mask
5327 * stage2/disk_io.c (check_BSD_parts) [!STAGE1_5]: Use the term
5330 * stage2/builtins.c (boot_func): Copy the partition table to
5334 * stage2/disk_io.c (real_open_partition) [!STAGE1_5]: Set
5336 * stage2/shared.h (BOOT_PART_TABLE): New macro.
5345 * stage2/disk_io.c (check_BSD_parts) [!STAGE1_5]: If the BSD
5375 * stage2/builtins.c (cmp_func): New function.
5379 * stage2/fsys_fat.c (fat_mount): Check if BPB.SECTS_PER_CLUST is
5384 * stage2/disk_io.c [!STAGE1_5] (make_saved_active): Make sure
5404 * stage2/fsys_fat.c (fat_read): Forgot to increase BUF.
5411 * stage2/char_io.c (grub_isspace): Make carriage return a white
5414 * stage2/fsys_fat.c (fat_dir): Long filename support.
5416 * stage2/fat.h (FAT_LONGDIR_ID, FAT_LONGDIR_ALIASCHECKSUM,
5419 * stage2/fsys_fat.c (fat_create_blocklist): Deleted, instead
5422 * stage2/disk_io.c (fsys_table): Use fat_read.
5423 * stage2/filesys.h: Declare fat_read, remove NO_BLOCK_FILES
5425 * stage2/Makefile.am: Compile fat_stage1_5 with
5428 * stage2/fat.h (fat_bpb): New structure describing bpb.
5438 * stage2/fsys_fat.c (fat_superblock): New structure containing
5452 * stage2/builtins.c (chainloader_func): Embed the partition
5457 * stage2/disk_io.c [!STAGE1_5] (boot_part_addr): New variable.
5468 * stage2/shared.h (boot_part_addr): Declared.
5473 * stage2/builtins.c (geometry_func): Attempt to read the first
5504 * stage2/shared.h [!GRUB_SHARED_HEADER] (GRUB_SHARED_HEADER):
5518 * stage2/builtins.c (bootp_func): Call
5534 * stage2/Makefile.am [NETBOOT_SUPPORT] (STAGE2_COMPILE): Added
5536 * stage2/builtins.c (bootp_func): New function.
5556 * stage2/fsys_fat.c (fat_create_blocklist): The previous change
5579 * stage2/builtins.c (print_root_device): Use the macro
5581 * stage2/disk_io.c [!STAGE1_5] (sane_partition): Likewise.
5596 * stage2/bios.c (get_diskinfo): Check if LBA read/write
5687 * netboot/Makefile.am (INCLUDES): Added -I$(top_srcdir)/stage2.
5738 * stage2/char_io.c (nul_terminate): Changed the type of the
5741 * stage2/shared.h (NETWORK_DRIVE): New macro.
5743 * stage2/gunzip.c (gunzip_test_header): Removed the TFTP check
5749 * stage2/asm.S: Undo the previous changes. Is
5755 * stage2/cmdline.c (enter_cmdline): Set BUF_DRIVE to -1 before
5758 * stage2/char_io.c (get_cmdline): Set BUF_DRIVE to -1 before the
5763 * stage2/asm.S (chain_stage1): Prepend `*' to the argument for
5781 * stage2/builtins.c (chainloader_func): If --force is specified
5801 * stage2/bios.c (NO_INT13_FALLBACK): Undefined.
5839 * stage2/asm.S (grub_setjmp): New function. Stolen from the
5842 * stage2/shared.h [GRUB_UTIL] (grub_jmp_buf): New type.
5847 * stage2/builtins.c (configfile_func): Use grub_longjmp instead
5849 * stage2/stage2.c (restart_env): New variable.
5860 * stage2/builtins.c (setup_func) [!NO_BUGGY_BIOS_IN_THE_WORLD]:
5875 * stage2/builtins.c (blocklist_func): New function.
5883 * stage2/disk_io.c (grub_seek): New function.
5884 * stage2/shared.h (grub_seek): Declared.
5885 * stage2/boot.c (load_image): Use grub_seek instead of setting
5887 * stage2/builtins.c (install_func): Likewise.
5899 * stage2/Makefile.am (nodist_noinst_DATA): Renamed to ...
5903 * stage2/bios.c (get_diskinfo): Set the LBA flag in GEOMETRY
5918 * stage2/disk_io.c (real_open_partition): If SLICE_NO is greater
5927 * stage2/stage2.c (cmain): Tell enter_cmdline to run forever.
5930 * stage2/cmdline.c (enter_cmdline): New argument, FOREVER, for
5948 * stage2/Makefile.am (PRE_STAGE2_LINK): Likewise.
5959 Make sure that stage1 and stage2 exist.
5967 * stage2/Makefile.am (noinst_DATA): Renamed to ...
5993 * stage2/builtins.c (install_func): When using a Stage 1.5, set
5998 * stage2/disk_io.c (set_device) [STAGE1_5]: Always set
6021 * stage2/boot.c (load_image): grub_close was called after
6023 * stage2/stage1_5.c (cmain): Call grub_close after grub_read.
6032 * stage2/builtins.c (print_root_device): New function.
6036 * stage2/disk_io.c [!STAGE1_5] (print_completions): Call
6039 * stage2/char_io.c [!STAGE1_5] (get_cmdline): Clear ERRNUM after
6042 * stage2/asm.S [!STAGE1_5] (currticks): Set %eax to %cx:%dx
6063 * stage2/Makefile.am (CLEANFILES): Change to
6073 * stage2/builtins.c (embed_func): The sector argument for the
6105 * stage2/fsys_ext2fs.c (struct ext2_dir_entry): Changed the type
6110 * stage2/builtins.c (device_func) [GRUB_UTIL]: Call
6115 * stage2/disk_io.c (real_open_partition): Check for the right
6120 * stage2/builtins.c (color_func): Use the function
6133 * stage2/char_io.c [!STAGE1_5] (nul_terminate): New function.
6134 * stage2/shared.h (nul_terminate): Declared.
6146 * stage2/asm.S (int1_handler): Use EXT_C(io_map) instead of
6161 * stage2/char_io.c [!STAGE1_5] (get_cmdline): Clear ERRNUM after
6166 * stage2/asm.S (track_int13): Defined unconditionally. Do not
6179 * stage2/builtins.c (ioprobe_func): New function.
6182 * stage2/shared.h (IO_MAP_SIZE): New macro.
6188 * stage2/char_io.c (print_error) [!STAGE1_5]: Print "Error:"
6191 * stage2/cmdline.c (run_script): If ERRNUM is non-zero, set
6198 * stage2/stage2.c (run_menu) [GRUB_UTIL]: Do not use IBM special
6202 * stage2/shared.h [!ACS_ULCORNER] (ACS_ULCORNER): New macro.
6225 * stage2/builtins.c (keycode_func): Removed.
6233 * stage2/common.c [!STAGE1_5] (err_list): Added
6235 * stage2/shared.h (grub_error_t): Added ERR_BAD_ARGUMENT.
6238 * stage2/asm.S [!STAGE1_5] (remap_ascii_char): New function.
6249 * stage2/disk_io.c (set_device) [!STAGE1_5]: Remove the
6258 * stage2/asm.S [!STAGE1_5] (set_int15_handler): Use 0 instead of
6268 * stage2/builtins.c (keycode_func): Check if FROM is greater
6271 * stage2/shared.h (KEY_MAP_SIZE): Set to 32.
6279 * stage2/asm.S [DEFINE_TRACK_INT13] (track_int13): Use %edi
6295 * stage2/disk_io.c (grub_close): Do not set ERRNUM even if
6308 * stage2/asm.S [DEFINE_TRACK_INT13] (int3_handler): Save the
6319 * stage2/asm.S [DEFINE_TRACK_INT13] (track_int13): New function.
6325 * stage2/builtins.c (quit_func) [!GRUB_UTIL]: Fix a typo.
6339 * stage2/builtins.c (device_func) [!GRUB_UTIL]: Set ERRNUM to
6352 * stage2/builtins.c (map_func): If BIOS_DRIVE_MAP already
6363 * stage2/asm.S [!STAGE1_5] (set_int15_handler): New function.
6372 * stage2/shared.h (KEY_MAP_SIZE): New macro.
6375 * stage2/builtins.c (boot_func): Do not allow I to be equal to
6409 * stage2/boot.c (load_image): Call grub_close before return.
6412 * stage2/builtins.c (cat_func): Likewise.
6421 * stage2/disk_io.c (fsys_table): Add the `close' member into
6426 * stage2/filesys.h [FSYS_TFTP] (tftp_close): Declared.
6428 * stage2/shared.h (grub_close): Declared.
6429 * stage2/stage1_5.c (cmain): Call grub_close after grub_open.
6430 * stage2/stage2.c (cmain): Clear ERRNUM after calling
6434 * stage2/asm.S (main): Clean out the bss.
6461 * stage2/builtins.c (bios_drive_map): New variable.
6469 * stage2/asm.S (ABS): New macro.
6476 * stage2/shared.h (DRIVE_MAP_SIZE): New macro.
6482 * stage2/builtins.c (find_func): Print only the device names.
6491 * stage2/char_io.c (memcheck): Fix the checks: "<=" -> "<".
6496 * stage2/builtins.c (find_func): New function.
6530 * stage2/builtins.c (embed_func): Set BUF_TRACK to -1 before
6535 * stage2/boot.c (load_initrd): Change types of *RAMDISK and
6575 * stage2/builtins.c (setup_func): Save CURRENT_DRIVE and
6617 * stage2/shared.h [GRUB_UTIL] (device_map_file): Declared.
6622 * stage2/builtins.c (color_func): Do not set NORMAL_COLOR or
6637 * stage2/char_io.c [!STAGE1_5] (get_cmdline): If C is a newline
6641 * stage2/builtins.c (embed_func): New function.
6647 * stage2/shared.h (grub_strncat): Declared.
6649 * stage2/Makefile.am (stage2_size.h): ../stage2/stage2 ->
6656 * stage2/boot.c (load_image): Only CUR_ADDR, not ENTRY_ADDR
6662 * stage2/asm.S [!STAGE1_5] (start): New label to force ld quiet.
6664 * stage2/builtins.c (install_func): Rewritten heavily almost
6700 * stage2/start.S: New file.
6701 * stage2/Makefile.am (noinst_DATA): New variable.
6704 (noinst_PROGRAMS): Removed stage2.exec, and added start.exec and
6723 (stage2): Likewise.
6728 * stage2/asm.S (start): Renamed to ...
6735 * stage2/shared.h (BOOTSEC_LISTSIZE): New macro.
6736 * stage2/stage1_5.c: Change the second argument for chain_stage2
6756 * stage2/freebsd.h (struct bootinfo): New member, bi_bios_dev.
6757 * stage2/boot.c (bsd_boot): Set BI.BI_BIOS_DEV to SAVED_DRIVE.
6763 * stage2/builtins.c (install_func): Reformat the warning message
6768 * stage2/builtins.c (install_func): Fix check for the Stage 2 id.
6775 * stage2/builtins.c (boot_func): Pass MBI.CMDLINE instead of ARG
6780 * stage2/gunzip.c (gunzip_test_header): Check if CURRENT_DRIVE
6787 * stage2/builtins.c (cat_func): Do not read the whole of a file
6799 * stage2/shared.h [!A_NORMAL] (A_NORMAL): Set to zero.
6805 * stage2/disk_io.c (set_bootdev): Mask 0x7F instead of 0x79 of
6813 * stage2/disk_io.c (set_device) [STAGE1_5]: Change the type of
6815 * stage2/builtins.c (install_func): Always check for the Stage 2
6826 * stage2/cmdline.c (skip_to): Restructure, and count tabs as
6848 * stage2/defs.h (time_t): Renamed to ...
6858 * stage2/disk_inode.h (FFS_MAX_FASTLINK_SIZE): Use mach_daddr_t
6862 * stage2/fs.h (BBLOCK): Use mach_daddr_t instead of addr_t.
6880 * stage2/disk_io.c (set_device) [!STAGE1_5]: Use RESULT instead
6885 * stage2/builtins.c (install_func): If the Stage 2 id in FILE is
6896 * stage2/disk_io.c (real_open_partition): Made global.
6900 * stage2/shared.h (real_open_partition): Declared.
6901 * stage2/fsys_ext2fs.c (ext2fs_dir): Do not print a newline even
6903 * stage2/fsys_ffs.c (ffs_dir): Likewise.
6904 * stage2/fsys_fat.c (fat_dir): Likewise.
6905 * stage2/fsys_minix.c (minix_dir): Likewise.
6914 * stage2/builtins.c (install_func): When installing Stage 1.5,
6920 * stage2/char_io.c [!STAGE1_5] (get_cmdline): In cl_insert, call
6923 * stage2/disk_io.c [!STAGE1_5] (print_completions): In the
6939 * stage2/Makefile.am (STAGE1_5_COMPILE): Do not define
6941 * stage2/asm.S (config_file) [STAGE1_5]: Set the first 4 bytes
6942 to 0xffffffff and the following to "/boot/grub/stage2".
6944 * stage2/builtins.c (install_func): Read a Stage 2 before
6949 * stage2/disk_io.c [STAGE1_5] (sane_partition): Eliminated.
6987 * stage2/builtins.c (debug_fs_print_func): Renamed to ...
6995 * stage2/disk_io.c [!STAGE1_5] (debug_fs): Renamed to ...
7003 * stage2/fsys_ext2fs.c (ext2fs_read) [!STAGE1_5]: Use
7006 * stage2/fsys_ffs.c (ffs_read) [!STAGE1_5]: Likewise.
7007 * stage2/fsys_minix.c (minix_read) [!STAGE1_5]: Likewise.
7008 * stage2/shared.h [!STAGE1_5] (debug_fs): Renamed to ...
7017 * stage2/builtins.c (install_func): New local function,
7049 * stage2/disk_io.c (set_partition_hidden_flag): Set/clear the
7054 * stage2/builtins.c (install_func): Do not set DEBUG_FS at the
7063 * stage2/builtins.c (install_func): If parsing ADDR fails, set
7082 * stage2/char_io.c [!STAGE1_5] (get_cmdline): In the completion
7090 * stage2/disk_io.c [!STAGE1_5] (do_completion): New variable.
7115 * stage2/shared.h (COMPLETION_BUF): New macro.
7154 * stage2/asm.S (putchar): Renamed to ...
7159 * stage2/gunzip.c (reset_linalloc): Use the macro RAW_ADDR
7161 * stage2/shared.h [!GRUB_UTIL] (RAW_ADDR): Added parenthesises
7181 * stage2/char_io.c (memcheck): Rename the argument START to
7195 * stage2/asm.S (get_code_end) [HAVE_END_SYMBOL]: Use $end as the
7198 * stage2/disk_io.c [!STAGE1_5] (cur_part_desc): Made static.
7203 * stage2/char_io.c [!STAGE1_5] (get_cmdline): The argument
7210 * stage2/stage2.c (cmain): Initialize the kill buffer.
7216 * stage2/shared.h (cur_cmdline): Removed.
7229 * stage2/boot.c (cur_cmdline): Removed.
7230 * stage2/char_io.c [!STAGE1_5] (grub_strcpy): New function.
7250 * stage2/size_test: Do not check for the size of Stage 2.
7257 * Makefile.am (SUBDIRS): Put stage1 after stage2 so that stage2
7308 * stage2/Makefile.am (stage2_exec_LDADD): Defined only if
7319 * stage2/char_io.c (grub_sprintf): Added parenthesises to avoid
7321 * stage2/gunzip.c (gunzip_test_header): Check if FSYS_TYPE is
7349 * stage2/Makefile.am (stage2_exec_LDADD): Added
7351 * stage2/asm.S [!STAGE1_5] (currticks): New function.
7352 * stage2/char_io.c [!STAGE1_5] (grub_sprintf): Likewise.
7354 * stage2/disk_io.c (fsys_table) [FSYS_TFTP]: Added an entry for
7361 * stage2/filesys.h [FSYS_TFTP] (FSYS_TFTP_NUM): Defined as 1.
7364 * stage2/gunzip.c (gunzip_test_header): If FILEMAX >= 16MB, do
7367 * stage2/shared.h (sprintf): New macro.
7372 * stage2/size_test: Set the maximum size of Stage 2 to 66560.
7411 * stage2/pc_slice.h (IS_PC_SLICE_TYPE_EXTENDED): New macro.
7412 * stage2/disk_io.c (real_open_partition): Use
7424 * stage2/shared.h (EXT_C): Defined.
7429 * stage2/boot.c (load_image): Use CURRENT_DRIVE and
7436 * stage2/disk_io.c (sane_partition) [STAGE1_5]: Defined.
7443 * stage2/builtins.c (device_func) [GRUB_UTIL]: Use check_device
7448 * stage2/builtins.c (geometry_func) [GRUB_UTIL]: Copy the
7470 * stage2/builtins.c (device_func): New function.
7484 * stage2/builtins.c (hide_func): Use set_partition_hidden_flag.
7488 * stage2/shared.h (set_partition_hidden_flag): Declare.
7490 * stage2/disk_io.c (set_partition_hidden_flag): New function
7505 * stage2/stage2.c (run_menu): If run_script is successfully
7509 * stage2/cmdline.c (run_script): If ERRNUM is non-zero, wait an
7514 * stage2/builtins.c (configfile_func): New function.
7521 * stage2/asm.S [!STAGE1_5] (chain_stage2): Deleted.
7523 * stage2/char_io.c (grub_strncat): Likewise.
7524 * stage2/common.c [STAGE1_5] (saved_mem_upper): Likewise.
7525 * stage2/smp-imps.c (imps_release_cpus): Likewise.
7535 * stage2/builtins.c (testload_func): Fix the typos: 0x2000000 ->
7541 * stage2/fsys_ffs.c (mapblock_offset): New variable.
7550 * stage2/cmdline.c (find_command): If COMMAND is less than
7552 * stage2/builtins.c (builtin_chainloader): Capitalize the
7577 * stage2/builtins.c: New file.
7578 * stage2/Makefile.am (libgrub_a_SOURCES): Added builtins.c.
7580 * stage2/boot.c (load_image): Return kernel_t instead int.
7582 * stage2/char_io.c (get_cmdline): Do not accept the argument
7586 * stage2/cmdline.c [GRUB_UTIL]: Do not include apic.h and
7608 * stage2/shared.h (PASSWORD_BUF): New macro.
7635 * stage2/size_test: Set the maximum size of Stage 2 to 56320.
7636 * stage2/stage2.c (grub_timeout): Deleted.
7656 * stage2/stage2.c (run_menu): Erase the entered password before
7658 * stage2/char_io.c (get_cmdline): Restore command-line even if
7661 stage2.
7662 * stage2/gunzip.c [NO_DECOMPRESSION]: Disable all code if
7667 * stage2/boot.c (load_image): Use PHDR->P_PADDR instead of
7677 * stage2/cmdline.c (enter_cmdline) [GRUB_UTIL]: Add a space in
7684 * stage2/char_io.c (get_cmdline): Search for a space or a equal
7687 * stage2/cmdline.c (skip_to): Treat the character `=' as a space
7702 * stage2/boot.c [GRUB_UTIL] (bsd_boot_entry): New function.
7708 * stage2/fsys_fat.c (fat_create_blocklist): Cast FAT_BUF to
7715 * stage2/cmdline.c (commands): Added hide and unhide.
7717 * stage2/disk_io.c (unhide_partition): New function.
7719 * stage2/pc_slice.h (PC_SLICE_TYPE_HIDDEN_FLAG): New macro.
7724 * stage2/fsys_minix.c (namelen): New variable.
7733 * grub/Makefile.am, stage1/Makefile.am, stage2/Makefile.am:
7739 * stage2/fsys_fat.c (fat_create_blocklist): Return 1 for the
7744 * stage2/boot.c (load_image): Accept two arguments, KERNEL and
7752 * stage2/cmdline.c (enter_cmdline): Use MB_CMDLINE instead of
7754 * stage2/shared.h (MB_CMDLINE_BUF): New macro.
7768 * stage2/fsys_minix.c: New file.
7769 * stage2/size_test: Added a check for the size of minix_stage1_5.
7770 * stage2/Makefile.am (libgrub_a_SOURCES): Added fsys_minix.c.
7778 * stage2/pc_slice.h (PC_SLICE_TYPE_MINIX): New macro.
7779 * stage2/disk_io.c (fsys_table) [FSYS_MINIX]: Added minix entry.
7780 * stage2/filesys.h [FSYS_MINIX] (FSYS_MINIX_NUM): Set to 1.
7783 * stage2/shared.h (STAGE2_ID_MINIX_STAGE1_5): New macro.
7792 * stage2/fat.h (FAT_BPB_FAT_SECTORS_16): New macro.
7800 * stage2/fsys_fat.c (root_dir): New variable.
7809 * stage2/pc_slice.h (PC_SLICE_TYPE_FAT32): New macro.
7816 * stage2/fsys_ffs.c (ffs_mount): Do not shift the fs type
7819 * stage2/fsys_fat.c (fat_mount): Do not shift the fs type
7833 * stage2/Makefile.am (libgrub_a_CFLAGS): Likewise.
7835 * stage2/filesys.h
7839 * stage2/fsys_ext2fs.c [!FSYS_EXT2FS]: Do not define anything.
7840 * stage2/fsys_fat.c [!FSYS_FAT]: Likewise.
7841 * stage2/fsys_ffs.c [!FSYS_FFS]: Likewise.
7853 * stage2/bios.c (get_diskinfo): In LBA mode, set TOTAL_SECTORS
7856 * stage2/cmdline.c (enter_cmdline) [GRUB_UTIL]: In the command
7859 * stage2/shared.h (device_map): Declared.
7867 * stage2/pc_slice.h (PC_SLICE_TYPE_BSD): Deleted.
7873 * stage2/fsys_ffs.c (ffs_mount): Use the macro
7876 * stage2/fsys_ext2fs.c (ext2fs_mount): Likewise.
7877 * stage2/fsys_fat.c (fat_mount): Likewise.
7878 * stage2/disk_io.c (check_BSD_parts): Set the low bits of
7887 * stage2/cmdline.c (commands): Added geometry.
7893 * stage2/stage2.c (run_menu): Terminate the string PASSWORD
7899 * stage2/stage2.c (set_line_normal): New function.
7905 * stage2/stage2.c (run_menu) [GRUB_UTIL]: Quit when pushing the
7913 * stage2/asm.S: Replace addr32 and data32 prefixes with ADDR32
7918 * stage2/boot.c (load_image): Use RAW_ADDR macro when loading
7923 * stage2/asm.S: Make each of the addr32 and data32 prefixes
7935 * stage2/i386-elf.h (EI_BRAND): New macro.
7936 * stage2/boot.c (load_image): If the kernel is ELF, check if it
7959 * stage2/asm.S (get_diskinfo_standard): If the number of sectors
7969 * stage2/bios.c (get_diskinfo): When DRIVE is a floppy drive,
7978 * stage2/cmdline.c (skip_to): Don't increase CMDLINE if the
7981 * stage2/Makefile.am (EXTRA_DIST): Removed smp-imps.c.
7983 * stage2/cmdline.c [!GRUB_UTIL] (IMPS_DEBUG) (KERNEL_PRINT)
7987 * stage2/smp-imps.c (IMPS_DEBUG) (KERNEL_PRINT)
7991 * stage2/cmdline.c [!GRUB_UTIL]: Include apic.h and smp-imps.h.
8006 * stage2/char_io.c (get_cmdline) [GRUB_UTIL]: Recognize
8025 * stage2/Makefile.am (INCLUDES): New variable.
8060 * stage2/cmdline.c (enter_cmdline) [!GRUB_UTIL]: When running
8073 * stage2/boot.c (load_image): When removing "vga=...", memmove
8078 * stage2/bios.c (get_diskinfo): In LBA mode, compute
8082 * stage2/boot.c (load_image): Fix inverted lines.
8088 * stage2/shared.h (LINUX_VID_MODE_OFFSET): New macro.
8094 * stage2/boot.c (load_image): Added Linux video mode selection.
8095 * stage2/char_io.c [!STAGE1_5] (grub_strlen): New function.
8099 * stage2/char_io.c (print_error): Print ERRNUM in the format of
8118 * stage2/shared.h (grub_printf) : Corrected.
8156 * stage2/shared.h (STAGE2_STAGE2_ID): New macro.
8170 * stage2/asm.S (stage2_id): New variable.
8185 * stage2/Makefile.am (libgrub_a_CFLAGS): Prepened @GRUB_CFLAGS@.
8188 * stage2/asm.S (chain_stage2): Pass CURRENT_PARTITION and
8200 * stage2/disk_io.c (attempt_mount) [STAGE1_5]: Set FSYS_TYPE to
8208 are made. `grub' depends on `stage2', and `docs' depends on
8217 built in the directory stage2.
8224 (AC_INIT): Change the argument to stage2/stage2.c.
8248 * stage2/apic.h: ... here.
8250 * stage2/asm.S: ... here.
8252 * stage2/bios.c: ... here.
8254 * stage2/boot.c: ... here.
8256 * stage2/char_io.c: ... here.
8258 * stage2/cmdline.c: ... here.
8260 * stage2/common.c: ... here.
8262 * stage2/defs.h: ... here.
8264 * stage2/dir.h: ... here.
8266 * stage2/disk_inode.h: ... here.
8268 * stage2/disk_inode_ffs.h: ... here.
8270 * stage2/disk_io.c: ... here.
8272 * stage2/fat.h: ... here.
8274 * stage2/filesys.h: ... here.
8276 * stage2/freebsd.h: ... here.
8278 * stage2/fs.h: ... here.
8280 * stage2/fsys_ext2fs.c: ... here.
8282 * stage2/fsys_fat.c: ... here.
8284 * stage2/fsys_ffs.c: ... here.
8286 * stage2/gunzip.c: ... here.
8288 * stage2/i386-elf.h: ... here.
8290 * stage2/imgact_aout.h: ... here.
8292 * stage2/mb_header.h: ... here.
8294 * stage2/mb_info.h: ... here.
8296 * stage2/pc_slice.h: ... here.
8298 * stage2/shared.h: ... here.
8300 * stage2/smp-imps.c: ... here.
8302 * stage2/smp-imps.h: ... here.
8304 * stage2/stage1_5.c: ... here.
8305 * shared_src/stage2.c: Moved to ...
8306 * stage2/stage2.c: ... here.
8311 * stage2/Makefile.am: Completely rewritten from scratch.
8329 (stage2.exec): Likewise.
8330 (stage2): Likewise.
8351 * stage2/size_test: New file, for checking for the sizes of
8398 * shared_src/stage2.c (menu_t): New enum type.
8451 * shared_src/stage2.c (print_border) [!GRUB_UTIL]: Color the
8554 * shared_src/stage2.c (get_line_from_config): Fix LITERAL
8604 address in stage2. We are not paranoid.
8671 * shared_src/stage2.c (cmain) [GRUB_UTIL]: Check if USE_CONFIG_FILE
8728 * stage2/Makefile.am (stage2_exec_LDADD): Likewise.
8749 * shared_src/stage2.c (print_entries): Correctly assign MENU_ENTRIES
8776 * shared_src/stage2.c (run_menu): Use get_cmdline with an
8780 * grub/main.c (usage): Display defaults for stage2 options.
8897 * shared_src/stage2.c (run_menu): Use A_REVERSE and A_NORMAL
8907 * shared_src/stage2.c (run_menu): Change prompts to "grub edit> ".
8933 * shared_src/stage2.c (timeout): Rename to grub_timeout.
8992 * shared_src/stage2.c (run_menu): Don't say it was a failure if
9021 stage2/Makefile.am: Likewise.
9064 * stage2/Makefile.am: Likewise.
9133 * stage2/Makefile: Likewise.
9152 * stage2/Makefile: Likewise.
9168 * grub/Makefile: New directory to contain the stage2 Unix program.
9174 * shared_src/stage2.c: Likewise.
9200 * shared_src/stage2.c (run_menu): Pause if we failed to boot both
9231 * shared_src/stage2.c (run_menu): Check to make sure that the