Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

x86_64 getmemsize: Recover 0x100000 bytes

When binutils 2.20 was brought in, the x86_64 kernel built with it loaded
at 0x200000 instead of 0x100000 as it was previously.  The getmemsize()
function was never updated with the new address so the physical memory
between 0x100000 and 0x200000 has been lost since then.

The hardcoded value has been updated.  In the future, it may be a good
idea to replace with a variable as FreeBSD has done.
  • Loading branch information...
commit aaff6978c31990b5af36eec505a511c80547d295 1 parent 09bb0da
John Marino authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  sys/platform/pc64/x86_64/machdep.c
2  sys/platform/pc64/x86_64/machdep.c
@@ -1575,7 +1575,7 @@ getmemsize(caddr_t kmdp, u_int64_t first)
* block out kernel memory as not available.
- if (pa >= 0x100000 && pa < first)
+ if (pa >= 0x200000 && pa < first)
goto do_dump_avail;

0 comments on commit aaff697

Please sign in to comment.
Something went wrong with that request. Please try again.