vsta

Check-in [f66eb8c813]
Login

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

Overview
Comment: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.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256:f66eb8c813377e958554fd68e5b2e4e8d92da5fcbf82609e0ffec37198e5ea4f
User & Date: vandys 2001-11-20 10:21:44
Context
2001-11-21
16:08
Let DEBUG flag make it through to dbsym... regression caused by makefile reorg. check-in: 2f84e21168 user: vandys tags: master, trunk
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
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to vsta/src/os/kern/mmap.c.

110
111
112
113
114
115
116

117
118
119
120
121
122
123
		/*
		 * Get a physical pset, create a view, map it in.
		 */
		ps = physmem_pset(btop(addr), plen);
		ps->p_flags |= PF_SHARED;
		pv = alloc_pview(ps);
		pv->p_prot = PROT_MMAP;

		vaddr = attach_pview(vas, pv);
		if (vaddr == 0) {
			free_pview(pv);
		}
		return(vaddr);
	}








>







110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
		/*
		 * Get a physical pset, create a view, map it in.
		 */
		ps = physmem_pset(btop(addr), plen);
		ps->p_flags |= PF_SHARED;
		pv = alloc_pview(ps);
		pv->p_prot = PROT_MMAP;
		pv->p_vaddr = (void *)offset;
		vaddr = attach_pview(vas, pv);
		if (vaddr == 0) {
			free_pview(pv);
		}
		return(vaddr);
	}