Permalink
Browse files

. displaymem函数增加参数“--s”,以512字节扇区的单位显示可用RAM。(issues #154)

  • Loading branch information...
yaya
yaya committed Aug 30, 2017
1 parent a7d772b commit 6f3129425378f855ca029e78c6d679c014db5e96
Showing with 7 additions and 3 deletions.
  1. +4 −1 ChangeLog_chenall.txt
  2. +3 −2 stage2/builtins.c
View
@@ -1,6 +1,9 @@
更新说明:
2017-08-30(yaya)
displaymem 函数增加参数 --s,以 512 字节扇区的单位显示可用 RAM。
2017-08-28(yaya)
修正 Windows XP 反馈 0K 错误。(issues #154)
修正 Windows XP 反馈 0K 错误(不点)。(issues #154)
修正 int15/ax=e820 等函数。
2017-06-21(yaya)
View
@@ -4602,7 +4602,7 @@ displaymem_func (char *arg, int flags)
}
else if (map->Type == MB_ARD_MEMORY)
{
grub_printf (" Usable RAM(Hex): Base: %8lX, Length: %8lX, End: %8lX\n",
grub_printf (" Usable (Hex sectors): Base: %8lX, Length: %8lX, End: %8lX\n",
(unsigned long long)(map->BaseAddr) >> 9,
(unsigned long long)(map->Length) >> 9,
(unsigned long long)(map->BaseAddr + map->Length) >> 9);
@@ -4622,7 +4622,8 @@ static struct builtin builtin_displaymem =
BUILTIN_MENU | BUILTIN_CMDLINE | BUILTIN_SCRIPT | BUILTIN_HELP_LIST,
"displaymem [--s]",
"Display what GRUB thinks the system address space map of the"
" machine is, including all regions of physical RAM installed."
" machine is, including all regions of physical RAM installed.\n"
"--s: Display Usable RAM in units of 512-byte sectors."
};
/* errnum */

0 comments on commit 6f31294

Please sign in to comment.