Subject: dosemu / init_main.c
To: None <port-i386@NetBSD.ORG>
From: Kenneth Stailey <kstailey@eagle.dol-esa.gov>
List: port-i386
Date: 06/05/1995 16:29:27
Is anyone using dosemu under NetBSD/i386? I would like to but I can't
get the kernel to link with Kolvir's mods because of a single
reference to proc0paddr in init_main.c. 'proc0paddr' used to be in
i386/locore.s before John got to it. I assume he also gets rid of the
reference in init_main.c or satisfies it some other way, but his ftp
archive doesn't say.
Here's the excerpt from init_main.c's main():
/* Allocate a prototype map so we have something to fork. */
p->p_vmspace = &vmspace0;
vmspace0.vm_refcnt = 1;
pmap_pinit(&vmspace0.vm_pmap);
vm_map_init(&p->p_vmspace->vm_map, round_page(VM_MIN_ADDRESS),
trunc_page(VM_MAX_ADDRESS), TRUE);
vmspace0.vm_map.pmap = &vmspace0.vm_pmap;
-> p->p_addr = proc0paddr; /* XXX */
/*
* We continue to place resource usage info and signal
* actions in the user struct so they're pageable.
*/
p->p_stats = &p->p_addr->u_stats;
p->p_sigacts = &p->p_addr->u_sigacts;
If anyone has a working dosemu could you please look into it and let
me know if init_main.c still looks like this.
Thanks a bunch,
Ken