Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 03 Oct 2001 11:06:51 -0700
From:      Terry Lambert <tlambert2@mindspring.com>
To:        Mike Silbersack <silby@silby.com>
Cc:        freebsd-arch@freebsd.org
Subject:   Re: Reading physical memory in a cross-platform way
Message-ID:  <3BBB53BB.84647DC1@mindspring.com>
References:  <20011001214234.W98394-100000@achilles.silby.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Mike Silbersack wrote:
> 1.  Is there a variable / function which contains the size of memory
> across all platforms that I am missing?

sysctl -A | grep -i mem

> 2.  If not, is there a problem if I add a u_int64_t containing the size of
> physical memory in bytes in machdep.c for each architecture?

If this number isn't what you are looking for, I have a patch
that adds a sysctl for the number of pages of physical memory,
the same as is reported by the kernel at boot time, which I
could send you.  Let me know at my clickarray.com address
(which is "terry").

-- Terry

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3BBB53BB.84647DC1>