[comp.os.minix] get_tot_mem

broman@cod.UUCP (02/08/87)

<>

I'm trying to find out how Minix determines the amount of memory
available on the machine it runs on.  This seems to be done by a
call on page 544, file mm/main.c in procedure mm_init, where I find:

tot_mem = get_tot_mem();   /* # clicks in mem starting at absolute 0 */
mem_init(tot_mem);         /* initialize tables to all physical mem */

BUT, get_tot_mem is not in the index, nor can I find it scanning thru
the source code.  I seem to remember that the BIOS equipment check
get_chrome() is the Only reference to the BIOS ROM in Minix;  this
implies that Minix would determine memory size directly from poking
around in the hardware.

Where did get_tot_mem disappear to?

My goal is to know whether minix can use 704K RAM, or would be limited
to 640K, since A0000 to AFFFF is "reserved" but physically possible.


Vincent Broman,  code 632, Naval Ocean Systems Center, San Diego, CA 92152, USA
Phone: +1 619 225 2365          {seismo,caip,ihnp4,ucbvax}!\\\\\\\
Arpa: broman@bugs.nosc.mil   Uucp: {floyd,moss,bang,hp-sdd,sdcsvax}!nosc!broman