mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-28 10:10:29 +00:00
2002-03-26 Yoshinori K. Okuji <okuji@enbug.org>
* stage2/boot.c (linux_mem_size): New variable. (load_image): Check a mem= option and set LINUX_MEM_SIZE to the specified memory size, if any. Otherwise, to zero. When an overflow is detected, use LINUX_INITRD_MAX_ADDRESS instead. (load_initrd): If LINUX_MEM_SIZE is non-zero, use it instead of the actual memory size. * stage2/char_io.c (safe_parse_maxint): Use ERR_NUMBER_OVERFLOW instead of ERR_NUMBER_PARSING, when an overflow occurs. * stage2/common.c [!STAGE1_5] (err_list): Added ERR_NUMBER_OVERFLOW. * stage2/shared.h (ERR_NUMBER_OVERFLOW): New constant.
This commit is contained in:
1 parent
3c5148ff24
commit
30ec0405c4
6 files changed
+85
-5
No files matched your search
@@ -548,6 +548,7 @@ typedef enum
|
||||
ERR_PRIVILEGED,
|
||||
ERR_NEED_SERIAL,
|
||||
ERR_NO_DISK_SPACE,
|
||||
ERR_NUMBER_OVERFLOW,
|
||||
|
||||
MAX_ERR_NUM
|
||||
} grub_error_t;
|
||||
|
||||
Reference in new issue
Block a user