diff options
author | Jeff Roberson <jeff@FreeBSD.org> | 2018-02-06 22:10:07 +0000 |
---|---|---|
committer | Jeff Roberson <jeff@FreeBSD.org> | 2018-02-06 22:10:07 +0000 |
commit | e2068d0bcd95865d142f0657ed834146ddad9754 (patch) | |
tree | c718f937c03962e717d7260e38f7e5fba9c76936 /sys/amd64 | |
parent | 1616767dfc210635ce16ea6e3659e3569be57515 (diff) | |
download | src-e2068d0bcd95865d142f0657ed834146ddad9754.tar.gz src-e2068d0bcd95865d142f0657ed834146ddad9754.zip |
Notes
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/amd64/machdep.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c index 6f5b0a6bddbe..e340c6cd14dc 100644 --- a/sys/amd64/amd64/machdep.c +++ b/sys/amd64/amd64/machdep.c @@ -282,7 +282,7 @@ cpu_startup(dummy) memsize = (uintmax_t)strtoul(sysenv, (char **)NULL, 10) << 10; freeenv(sysenv); } - if (memsize < ptoa((uintmax_t)vm_cnt.v_free_count)) + if (memsize < ptoa((uintmax_t)vm_free_count())) memsize = ptoa((uintmax_t)Maxmem); printf("real memory = %ju (%ju MB)\n", memsize, memsize >> 20); realmem = atop(memsize); @@ -309,8 +309,8 @@ cpu_startup(dummy) vm_ksubmap_init(&kmi); printf("avail memory = %ju (%ju MB)\n", - ptoa((uintmax_t)vm_cnt.v_free_count), - ptoa((uintmax_t)vm_cnt.v_free_count) / 1048576); + ptoa((uintmax_t)vm_free_count()), + ptoa((uintmax_t)vm_free_count()) / 1048576); /* * Set up buffers, so they can be used to read disk labels. |