vsta

Check-in [8c03015859]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Cap memory size to 768 megs; our virtual map can't handle larger sizes, and I can't develop and test a fix until I buy such a large memory config for myself!
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256:8c03015859d9c2cecb535f7ea7b6b9124da3a481619039a2221f9633a8867a7f
User & Date: vandys 2001-11-16 11:59:26
Context
2001-11-20
10:21
Use unused "offset" field in MAP_PHYS to assign an optional vaddr. This argument and "vaddr" are really reversed, but compatibility issues make this more of a pain to correct than it's worth. check-in: f66eb8c813 user: vandys tags: master, trunk
2001-11-16
11:59
Cap memory size to 768 megs; our virtual map can't handle larger sizes, and I can't develop and test a fix until I buy such a large memory config for myself! check-in: 8c03015859 user: vandys tags: master, trunk
2001-10-25
19:22
New man page organization. check-in: 0417d8ec27 user: vandys tags: master, trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to vsta/src/os/mach/init.c.

   217    217   	 */
   218    218   	ASSERT(size_base > 630*K, "need 640K base mem");
   219    219   	ASSERT(size_ext >= K*K, "need 1M extended mem");
   220    220   	memsegs[0].m_base = 0;
   221    221   	memsegs[0].m_len = size_base;
   222    222   	memsegs[1].m_base = (void *)(K*K);
   223    223   	memsegs[1].m_len = size_ext;
          224  +
          225  +	/*
          226  +	 * Cap memory due to limits on virtual address space mapping
          227  +	 * of available RAM.
          228  +	 */
          229  +	if (size_ext > 768*K*K) {
          230  +		memsegs[1].m_len = 768*K*K;
          231  +	}
   224    232   
   225    233   	/*
   226    234   	 * Point heap at first byte beyond _end; it will almost
   227    235   	 * certainly be advanced past boot tasks next, but this
   228    236   	 * makes it possible to test the kernel by itself.
   229    237   	 */
   230    238   	if (nboot_task == 0) {